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 |
How many rounds in dell interview process in dell
2 Answers DELL, IBM, Marvel ERP,
which field is comparitively very best , today and in future while considering the following : ELECTRONICS [OR] NETWORKING
Five circle- adjacent to each other in ascending order, first dia 8 and last dia 18, find mid one.
Differentiate y = sinx + cosx + tanx
what do you mean by data abstraction?
Explain the difference between RAM and ROM? What is “Volatile Memory
what is D- channel ?
Full form of Abt Meter
how convert the spiral model to prototype model ?
tcs aptitude questions
write a program to accept 25 characters and at the end display the largest and smallest among them.
Always declare destructors to be virtual"?????? why this is so needed?????
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)