I have an assignment to write a recursive function that takes one integer variable and output the integer in reverse order to the screen. I've tried converting it to a char array(c++ "string" class not allowed) but could not get a counter to work. I can reverse an int array with and "upper" and "lower" variable no problem, but I'm stuck without them.
???? reverse(int num) //This is what the assignment calls for.
I'm not looking for anyone to write it for me but I would appreciate some tips.
Thanks in advance.