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 is a example of a variable?
What is NULL pointer?
How can I send mail from within a c program?
Explain what are the different data types in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What are the features of c language?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
How can a program be made to print the line number where an error occurs?
What is a #include preprocessor?
What is the difference between typedef and #define?
What is the c value paradox and how is it explained?
What is nested structure in c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
How can a program be made to print the name of a source file where an error occurs?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none