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 is the return value (status code) of exit() function.... what the arguments(integer value) passed to it means....
What are disadvantages of C language.
What are the types of pointers?
What are the types of operators in c?
Explain what are reserved words?
How do you write a program which produces its own source code as its output?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
What are register variables? What are the advantage of using register variables?
Difference between for loop and while loop?
Can an array be an Ivalue?
enum DAY { sunday, monday, tuesday }; enum EDAYS { friday, saturday, sunday }; void main() { int i =0; if( i == sunday) { printf("%d",i); } } what would be the output?
Why do we use return in c?