5.10. Exercises
- 1. If the program in Figure 5.24 is run, what will be displayed?
FIGURE 5.24. Exercise 1 (code\calc1.cpp)
short Calc(short x, short y)
cout << "The value of j in Calc is: " << j << endl;
j = Calc(i + 5, i * 2) + 7;
cout << "The value of j in main is: " << j << endl;
Answers to exercises can be found at the end of the chapter.