#include <stdio.h> #include <string.h> int main() { char s[100]; printf("Enter a string to reverse\n"); gets(s); strrev(s); printf("Reverse of the string: %s\n", s); return 0; }
outputs:
Enter a string to reverse
computer
Reverse of the string:
retupmoc
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
outputs:
Enter a string to reverse
computer
Reverse of the string:
retupmoc
need an explanation for this answer? contact us directly to get an explanation for this answer