Wednesday, March 20, 2013

Program to reverse a string

Have you ever tried to reverse a string ??
strrev(), a function from string.h is able to do this.
Just pass the string to the function and the string will be reversed.
For example if you pass "Hello" as input then the output will be "olleH".

Try different strings with this function to get reverse.
Have Fun !!

Powered by Blogger.