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
How can I manipulate individual bits?
How do I use void main?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference
What is auto keyword in c?
Can stdout be forced to print somewhere other than the screen?
What is infinite loop?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Tell us bitwise shift operators?
How do you sort filenames in a directory?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
What is the difference between typedef struct and struct?
How many parameters should a function have?
What are all different types of pointers in c?
What is the use of bitwise operator?