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 |
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
How do you define structure?
how to make program without <> in library.
write a c programme for add of two numbers with out use of arthematic operators
How does sizeof know array size?
Find MAXIMUM of three distinct integers using a single C statement
What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings
give an example of type casting by a simple c program
what is the difference between auto and static keywords
1 Answers cDot, College School Exams Tests, TCS,
Explain can you assign a different address to an array tag?
write a c program to convert fahrenheit to celsius?
Hi can anyone tell what is a start up code?