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 Posted / 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 |
Post New Answer View All Answers
I have completed my B.E with (CSE) computer science and engineering ,i had a total no of backlogs=20 ,is there any chances to get the visa PLEASE HELP ME NE1 : MY ID=john_searchig143@yahoo.com .
WHAT IS DIFFERENT BETWEEN YOU AND OTHER APPLICANT TO GIVE YOU THE JOB
What are the main differences between the engines in jet fighters and the engines in jet airliners; which type of engine is the more efficient, and (qualitatively) why?
funtionalities of loadining and linking
what is the stucture of.net array?
difference between a for loop and a while loop? what are its uses in c language?
which topics are come from quizs
How Main()is called by opreting system?
is it possible to get u.s visa with 55% in b-tech and 15 backlogs
What is the instruction to load the register B?
What will be the sql query to list the employee names those are getting 3rd highest salary ?
Calculate the interstage pressure ratio per stage for a two stage compressor if the overall pressure ratio is 10.
how to join two table those stored on different database.
plz send me interview questions & answers of Data Structure
AD backups and restoration