Write a C program where input is: "My name is xyz". output
is: "xyz is name My".
Answer / suneel
step1: First find length of the string
step2: Reverse the string and stored in another string
temp[]="zxy si eman ym";
step3:
Store each charecter in the temp[] to stack
when it is not a space
step4: If it is space then pop the all characters in the stack
and stored in o/p
step5: The process is done upto null
| Is This Answer Correct ? | 14 Yes | 7 No |
What character terminates all strings composed of character arrays? 1) 0 2) . 3) END
what are the stoge class in C and tel the scope and life time of it?
#include<stdio.h> main() { char s1[]="Ramco"; char s2[]="Systems"; s1=s2; printf("%s",s1); } what will happen if you executed this code?
Where is volatile variable stored?
char p="data"; printf(p);
main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????
mplementation of stack using any programing language
Explain what is dynamic data structure?
Can we add pointers together?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What are the types of unary operators?
What is variables in c?