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 |
write a program to search for an element in a given array. If the array was found then display its position otherwise display appropriate message in c language
How important is structure in life?
What is c basic?
What will the preprocessor do for a program?
Write a program to swap two numbers without using third variable in c?
How are variables declared in c?
what are bitwise shift operators?
any string of bits of length 'n' represents a unique non- negative integer between.............?
write a program wch produces its own source code aas its output?
Why cant I open a file by its explicit path?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
Is c functional or procedural?