Which of the following is specified by function prototype in C++? I. Return…
20212021
Which of the following is specified by function prototype in C++? I. Return Type II. Function name III. Number and types of argument
- A.
I and II
- B.
I and III
- C.
II and III
- D.
I, II and III
Attempted by 414 students.
Show answer & explanation
Correct answer: D
A C++ function prototype declares the function's interface before its definition. It specifies the return type, the function name, and the number and types of arguments required.