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 |
IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.
How can I manipulate strings of multibyte characters?
#include<stdio.h> void main() { int a [5]; for (i=0; i<=4; i++) printf(ā%dā ,a[i]); }
What is the return type of sizeof?
Why is c faster?
Average of a couple 10 years ago was 25. The average remains same after having a child and twins after 3 years. What is the present age of the first child
What is a good way to implement complex numbers in c?
whats the use of header file in c?
what is an inline function?
What is the right way to use errno?
Give me basis knowledge of c , c++...
write a program to print calender using for loop.