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 is the Boundary value analysis and Equlance class partition for select * from emp
Why do windmills never appear stationary?
what is need of interface. what is the diff b/w interface and abstract class
can i clearly know courses under oracle
What do you like and dislike about working for this organisation?
What is your happiest moment in your life
tell me one scenario where we go for idoc and WHy we go for idoc.
what is difference between Fault tolerance Vs fault avoidance
what is a Additional domain ? what is a child domain?
what are the advantages as disadvantages of the V-model?
assemblies in .net
charak was the famous court physician of?