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

  1. A.

    I and II

  2. B.

    I and III

  3. C.

    II and III

  4. 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.

Explore the full course: Up Lt Grade Assistant Teacher 2025