Thursday, March 23, 2017

String reverse using strrev()

#include<stdio.h>

main()

{

    char st[15];

    gets(st);///st="we"

    puts(st);///st="we"

    strrev(st);///st="ew"

    puts(st);///st="ew"


}


No comments:

Post a Comment