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
Can you write the function prototype, definition and mention the other requirements.
What is the purpose of & in scanf?
What's the difference between constant char *p and char * constant p?
What is %g in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What are the types of macro formats?
Why is event driven programming or procedural programming, better within specific scenario?
Explain how many levels deep can include files be nested?
What is an arrays?
What does == mean in texting?
Why is c used in embedded systems?
How to draw the flowchart for structure programs?
What is the best style for code layout in c?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
Why is not a pointer null after calling free?