#include<stdio.h>
#include<string.h>
main()
{
char STR1[100];
int i;
clrscr();
printf("Please input a STRING.\n");
gets (STR1);
printf("\n%s is displayed in reverse form as:\n",STR1);
for(i=strlen(STR1)-1; i>=0 ; i--)
{
printf("%c",STR1[i]);
}
getch();
}
chescarleta18
0
Newbie Poster
Recommended Answers
Jump to Postmain()
If you do not specify a return type for main(), it does not mean you are exempt from returning a value. This feature is called implicit int. It means that if a data type is expected but not provided, int is assumed. So these two definitions …
All 3 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
yellowSnow
commented:
Persistance against a never ending wad of crap posts.
+2
Tom Gunn
1,164
Practically a Master Poster
chescarleta18
0
Newbie Poster
yellowSnow
commented:
Other users are trying to help you with the rules of the forum. You're just luck Mr Gunn is a good guy.
+0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.