About us

C Program for the reverse of a string

C Program for the reverse of a string

c-program-reverse-string




#include<stdio.h>
#include<conio.h>
#include<string.h>

void main()
{
char s[20];
int n;
clrscr();
printf("enter any sring\n");
gets(s);
printf("%s",strrev(s));
getch();
}

OUTPUT

enter any sring
HELP
PLEH


------------------------------------------------------------------------------------------------------------


You can also visit:-