String reverse means reverses the order of all the characters in a string. String are stored in Array of type char, with the end of the string marked by the null character.
char strr=" i am rekha"; /*define & initializing a string of characters*/
/* we should move to the last position in the strr*/
/*Now ‘s’ is pointing to the ‘\0’ character, so we need to decrement s to point to the previous character*/
while(s>=&strr) /*copy char by char from strr to revv*/
printf("\n the string after reversing is %s",revv);