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 |
what is difference between shell commands and shell scripting commands or both r same?
what are the qualifications for a cse student to get government job
i am student of computer science and engineering iam in 4th year suggest me about my feature?
Why do large ships like aircraft carriers not sink despite weighing several thousand tonnes?
what should i say in the interview if interviewer asks me "why did you choose IT instead of your core group?"
what are the main points to be included in our introduction when asked in hr...??
What is the reason of hunting of variable turbine geometry?
how to send request to the direct server rather than proxy server
Why do sausages split lengthways, rather than around the circumference?
Need help with technical writer interview asap.
basic difference between run time and compile time polymorphism
How to access control's information on the another page.without using state management techniqe like cookies,session,viewstate,application state.
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)