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 |
How does normalization of huge pointer works?
int x=5; printf("%d%d%d",x,x<<2,x>>2);
How can I change their mode to binary?
What are bit fields? What is their use?
Is c is a low level language?
What are pragmas and what are they good for?
Which is more efficient, a switch statement or an if else chain?
#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?
Dear Sir, we are required the bubble sorting programs Regs Prem
write a program to arrange the contents of a 1D array in ascending order
i have a written test in tomorrow
What is the difference between NULL and NUL?