The num variable was still equal to 1 even after the function was called. Therefore num = num(1) - 1 = 0. The num variable in addOne() is different than the num variable in printInt().
This section is not available anymore. Please use the main Exam Page.98-388 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
godzlupet
2 years agoAbdullahsawaftah
3 years, 11 months agoln1593
3 years, 10 months agoAbhitera
4 years, 4 months ago