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 #include called?
what are the different storage classes in c?
What is wrong with this statement? Myname = 'robin';
how can I convert a string to a number?
What is null pointer constant?
What are the characteristics of arrays in c?
What will the preprocessor do for a program?
Tell me can the size of an array be declared at runtime?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
What are the 5 types of organizational structures?
What is the purpose of macro in C language?
What is the difference between formatted&unformatted i/o functions?
The difference between printf and fprintf is ?
What does 3 periods mean in texting?
What are header files in c programming?