Answer Posted / anand
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char a[]="i am anand";
int x,len,y,z;
len=strlen(a);
z=len-1;
for(x=len-1;x>=0;x--)
{
if(a[x]==' '||x==0)
{
for(y=x;y<=z;y++)
{
printf("%c",a[y]);
}
z=x;
}
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is the function of multilevel pointer in c?
Explain what is wrong in this statement?
What is the explanation for modular programming?
Explain the difference between null pointer and void pointer.
How can I find the modification date and time of a file?
What are the valid places to have keyword “break”?
What is array of pointers to string?
What are the types of arrays in c?
Explain a file operation in C with an example.
Difference between Function to pointer and pointer to function
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
How can you find the day of the week given the date?
What does double pointer mean in c?
When should the volatile modifier be used?
How arrays can be passed to a user defined function