
You are to complete exercise 5, p 341, writing a program which contains a user-defined function, reverseDigit. This is its header:
int reverseDigit(int value)This problem should seem familiar:
lab 5 required you to reverse the digits of an integer as well. The difference is that in the previous program you merely had to strip off the digits of the input number one at a time, working from right to left, and print them at the command line; in this program, not only do you need to reverse the digits, you need to store the digits as an integer. You will be doing the work in your user-defined function and returning the reversed number to main.