Create a recursive function accepts an integer


Discussion:

Q: Create 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

}

 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Create a recursive function accepts an integer
Reference No:- TGS01937497

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)