Q. Which of the following is the correct way to define a function that returns an integer and takes two integers as parameters?
β
Correct Answer: (C)
int func(int a, int b) { }
Explanation: In C++, the function header includes the return type, followed by parameter types and names.