C program to reverse a string C Programming Friday, May 15, 2015 1 min 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 Next C palindrome program / c program to find a string is palindrome or not Previous C program to concatenate two strings Related Articles C program to convert string to inte...C palindrome program / c program to...C program to concatenate two string...Android Indicators : A simple libra...c language notesC program to swap two strings
0 comments:
Post a Comment