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 |
iu6589u
Write a regular expression for "Capgemini Services Pvt.Ltd"
what is polymorphism?
what is software engineer
what are nanoemulsions and how are they prepared? i want a brief outline about nanoemulsions.. is anyone of you is having any literature, can you share that? also any an idea where i can get the information?
What is the difference between CD-R and CD+R?
what do you mean by data abstraction?
MY interview Experience with TCS
what is your weaknesses
wat r aptitude ques askd in TCS??
How to Define the defect density?
how to create session in visual web jsf page as we create in jsp and how to maintain that jsf session in another jsp page? <JSF=java server faces> <JSP=java server pages>