Answer Posted / vishnu948923
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<ctype.h>
void main()
{
int n,i,j=0;
char str[100];
char str1[100];
clrscr();
puts("Enter string:");
gets(str);
n=strlen(str);
for(i=n-1;i>=0;i--)
{
if(str[i]==' ')
{
str1[j]='\0';
strrev(str1);
printf("%s ",str1);
j=0;
}
else
{
str1[j++]=str[i];
}
}
if(i==-1)
{
str1[j]='\0';
strrev(str1);
printf("%s ",str1);
}
getch();
}
//strtoke
//isvowel
| Is This Answer Correct ? | 24 Yes | 10 No |
Post New Answer View All Answers
What are the salient features of c languages?
What is the c value paradox and how is it explained?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
regarding pointers concept
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
What is dynamic memory allocation?
What is wrong with this initialization?
I need a sort of an approximate strcmp routine?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is the scope of an external variable in c?
What is abstract data structure in c?
What is a structure in c language. how to initialise a structure in c?
How reliable are floating-point comparisons?
What is an arrays?
what is uses of .net