Revers a string
#include<stdio.h>
#include<string.h>
main()
{
char arr[100];
printf("Enter a string to reverse\n");
gets(arr);
strrev(arr);
printf("Reverse of entered string is \n%s\n",arr);
getch();
}
#include<stdio.h>
#include<string.h>
main()
{
char arr[100];
printf("Enter a string to reverse\n");
gets(arr);
strrev(arr);
printf("Reverse of entered string is \n%s\n",arr);
getch();
}
Comments
Post a Comment