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 are the advantages of Macro over function?
what are # pragma staments?
Does c have an equivalent to pascals with statement?
write a program in c language to print your bio-data on the screen by using functions.
What is difference between Structure and Unions?
How to convert decimal to binary in C using recursion??
what are the uses of structure?
what is the structure?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
what is bitwise operator?
What are the two types of structure?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result