Write a C program where input is: "My name is xyz". output
is: "xyz is name My".
Answer Posted / 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 |
Post New Answer View All Answers
Explain how many levels deep can include files be nested?
What is c++ used for today?
What is a wrapper function in c?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
How many levels of indirection in pointers can you have in a single declaration?
Describe wild pointers in c?
Why flag is used in c?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
By using C language input a date into it and if it is right?
How can I read and write comma-delimited text?
What is the difference between array and linked list in c?
What is structure in c explain with example?
Explain how can you tell whether a program was compiled using c versus c++?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is the maximum no. of arguments that can be given in a command line in C.?