Given the following function:
int next(int x){return (x + 1);}what is the output of the following statement?cout << next(next(5)) << endl;
A. 5
B. 6
C. 7
D. 8
Answer: C
Computer Science & Information Technology
You might also like to view...
Which statement about the #include directive is false?
a) The difference between the various forms of the #include directive is the location the preprocessor searches for the file to be included. b) If the file name is enclosed in quotes, the preprocessor searches in the same directory as the file being compiled for the file to be included. c) If the file name is enclosed in angle brackets, the preprocessor searches in the same directory as the file being compiled for the file to be included. d) The preprocessor searches for standard library header files in an implementation-dependent manner.
Computer Science & Information Technology
A contains the sum of a series of values.
a) total b) counter c) condition d) loop
Computer Science & Information Technology