Translate

Labels

Saturday, 15 November 2014

C PROGRAM TO REVERSE A STRING

String reverse using strrev function





main()
{
    char str[50];
    char *rev;
    printf("Enter any string : ");
    scanf("%s",str);
    rev = strrev(str);
   
    printf("Reverse string is : %s",rev);
   
    return 0;
}

No comments: