As you can see in the above mentioned title , I don't know if there is something I am doing wrong . I have just started learning c . Please help me with the code.
#include <stdio.h> //code in c language.
#include <string.h>
int main()
{
    char str[20];
    printf("Enter the string:");
    scanf("%s",&str);
    gets(str);
    printf("The string is: %s \n",str);
    printf("The reverse string is : %s",strrev(str));
    return 0;
}
 
    