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
Explain the ternary tree?
How many data structures are there in c?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
Array is an lvalue or not?
How can you increase the allowable number of simultaneously open files?
Explain main function in c?
What is a file descriptor in c?
Can we assign integer value to char in c?
what is the diffrenet bettwen HTTP and internet protocol
Is c is a low level language?
What does static variable mean in c?
What does void main () mean?
What is the difference between fread and fwrite function?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
How do I use strcmp?