Which part of a function specifies the return type and the types of parameters?

  • Function Call
  • Function Declaration
  • Function Definition
  • Function Prototype
In C++, the function prototype specifies the return type and the types of parameters a function expects. It provides a declaration of the function's signature, allowing the compiler to check for correct usage throughout the code.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *