C program: To reverse a string using library function.

Output