Sunday, 20 March 2016

C Program For Reverse A String Using Library Function

#include<stdio.h>
#include<string.h>
int main()
{
//Ghanendra Yadav
    char str[50],*revStr;
 
    printf("\nEnter Any String Without Space:\n\n ");
    scanf("%s",str);

    revStr = strrev(str);
    printf("\nReverse string is :\n\n %s",revStr);
    return 0;
}

Output:-


No comments:
Write comments

Recommended Posts × +