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
what is the difference between a decision statement and ea loop statement?
1)How to calculate AC Capacity for the Room?
to which generation of prog. languages does ai prog languages belong
How to select the total numbers of fire extinguisher installed in a room ?
What is the main difference between binary and counting semaphore?
What is the aim of Value Engineering?
operation of carrier aided protection and what is the basis for choice of frequncy in powerline carrier system
what is the difference betweeen far pointer and near pointer
plz send me how to overhauling of freon bitzer semi receprocal comprassors with available video
I have Job A and Job B in jcl. I want to trigger Job B from Job A. Please advise.
Index of an Array containing 'n' aliment varies from________to_______
how to prepare for an written exam for any type of company?
WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER
can u give me the information about the questions asked by the bally in campus
different types of protocols.......?