C program to reverse a string C Programming Friday, May 15, 2015 Reading Add Comment reverse.c #include <stdio.h> #include <string.h> int 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); return 0; } Output- Enter a string to reverse I love coading Reverse of entered string is gnidaoc evol I C Programming C Programs Share: Facebook Twitter Google Plus Pinterest Related Articles
0 comments:
Post a Comment