>>hey,, i'm joyce, newbie
Welcome to DeniWeb. Please go to the CoffeeHouse and tell us about yourself.
As for your problem if it were me I would convert the integer to a character string then just print the string backwards. You can use sprintf() to make the conversion.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
> while (num=0)
Use == for comparison, = is for assignment
Though you probably want !=
> return (sum);
Think - would this be better inside or outside of the loop.
> reverse(int num);
This just prototypes the function again.
Try say
sum = reverse( num );
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953