What's New-Given Below
technicalsymposium
technicalsymposium
technicalsymposium

Free E-Mail Alerts

C/C++ Lab Program(s)/Materials

C Program For String Reverse.

#include<stdio.h>
#include<conio.h>
void main()
{
char n[50],j,i=0;
clrscr();
printf("OUTPUT\n");
printf("------");
printf("Enter String:\n");
printf("The Reverse Of The Given String is\n");
printf("**********************************");
while((n[i]=getchar())!='\n')i++;
for(j=i-1;j>=0;j--)
{
printf("%c",n[j]);
}
getch();
}