I need a recursive function that accepts an integer and returns its reverse.
for example
int reverse( int n );
int main()
{
int n;
n = reverse (123) ; // this returns 321
}
I can do this easily without recursion but I have to use recursion.
Thank you.