Write a program to reverse a string using library function.

#include<stdio.h>
#include<string.h>
main()
{
    char str[100];
    printf("\nEnter a string=");
    scanf("%s",str);
    printf("\nAfter reversing the resultant string=%s",strrev(str));
}

No comments:

Post a Comment