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 |
When should a type cast not be used?
Explain the difference between structs and unions in c?
What is the difference between procedural and declarative language?
CopyBits(x,p,n,y) copy n LSBs from y to x starting LSB at 'p'th position.
main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); }
struct node {struct node*temp,*new} prinf("%d",sizeof(struct node));
How does sizeof know array size?
what is c
What is meant by int main ()?
What are actual arguments?
how the compiler treats any volatile variable?Explain with example.
Write a program to find whether the given number is prime or not?