October 1997
Intermediate to advanced
800 pages
20h 48m
English
| 1: | Write itoh() (Listing 3.3 on page 91) without recursion, and use the same main() program from the chapter. What are the advantages and disadvantages of each version? | |
| 2: | The recursive version of itoh() (Listing 3.3 on page 91) and Exercise 1 both have void return values because each routine displays the result. Modify the recursive version of itoh() to return a character string pointer to the caller. Use the following program to test your solution.
Listing 3.21. Program with integer-to-hexadecimal conversion
|