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
How would Nvidia increase the core clock speed anymore?
i have applied for junior engg. signal II please send me questions papers for it
Please send us a brief description why do you think you can fit to the role
/bin/bash is missing.
Which one is more efficient in terms of required memory space call-by-value or call-by-referance?
hi,i came to US to pursue my masters in computer information technology.Can i do my masters the first 6months in US and the rest 9 months course from INDIA through online education
how am i supposed to convert a class program in C++ to Matlab? Do i also need to make classes in matlab too or I can do it without making classes???Can somebody help....
Explain force?
Explain i.d.e. for visual c++?
I am selected interview for computer sc.please give me some information how many types question asked in interview.my id is sumanadas10@gmail.com
What is the strongest naturally occurring material and how can it be cut?
what are differences b/w EIA 449 and EIA 530?
What is the difference between operator overloading and function overloading in C when compared with C++?
what are the main points to be included in our introduction when asked in hr...??
what is 16kHz use in GSM