to write a program to search a character in a string and to
print till the character in the string using pointers in c
program
Answer / guest
char str[20]="some string";
char *ptr=str;
char search_char=e;
for(int t=0;i<strlen(str);i++)
{
if((*ptr)==e) (*ptr)=\0' //null charachter
}
printf("%s",str);
Is This Answer Correct ? | 5 Yes | 4 No |
what are the steps u follow to create an custom idoc program in which environment u create the program?
Explain what are db_options used for?
Why did they used to make the mill chimneys so tall?
differences between pass by reference and pass by value in c language?
How EVA granules manufactured (I wanted to know the manufacturing process). (Virgin Granules) and what are the Raw Materials used.
how can one get scholership based on gre score ang how much scholarship one can get, plz suggest the way one can apply and get scholarship
Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.
what kind of wood is in high demand in india?
Has anyone attended interviews in IITs for positions like Research fellowships/assistants? If yes, please share the experience about how complex the interview was, etc. etc.
discuss the technique for implementing high performance computing
what is the formula/ ratio for hollow block? considering to a 40 kgs of portland cement.
which is having more efficiency smaller power plant or bigger power plant? why?