Reverse String using recursion

#include
void rev_str(char* s)
{

if(*s != '\0')
rev_str(s+1);


printf("%c",*s);
}

int main()
{
rev_str("born2c0de");
return 0;
}

Comments