Thursday, 4 January 2018

Reversing a String using C

#include <stdio.h>

int main ()
{
    char name[20];
    printf("enter your name \n");
    scanf("%[^\n]s",name);
     printf("%s\n",strrev(name));
    return 0;
}


No comments:

Post a Comment