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 |
Research reveals that high fiber content food is effective in preventing heart disease. However consumers are unable to take advantage of this finding as fiber content is usually not listed on the Nutrition Information label on food packages. Therefore as a further precaution in preventing heart disease, the government must regulate food industries to include the fiber content on the Nutrition Information label on food packages. Which of the following weakens the argument above?
How to create test case scenario?
0 Answers Hindustan Unilever Limited,
how 2 write a program of this pattern usin for loop?? 1 2 3 4 5 6 7 8 9 10
Given a number (N), program to check whether its binary form has periodic or not
Why Mother Board is called Mother Board & not Father Board?
12 Answers Microsoft, Precision Infomatic, SoftStream,
in b+ trees, all the data is stored in leaf nodes. if all leaf nodes are crashed then how to get/recovery the data back?
what will happpen when "MY COMPUTER" IS PERMANENTLY REMOVED FROM MY COMPUTER?
successful command to make linux system as router in redhat-+
multithreading??
What is the difference between Huawei 5700 switch and 5300 switch?
Can anyone tell me the exact formulae with explanation for the questions related to cube which is asked for CTS? I have seen varieties of formulae in different sites.I need the exact on... So pls help me out!!!
what are the artifacts in coding phase in SDLC????