Multiple Choice
What is the output of the following program?
#include <iostream>
using namespace std;
int getValue(int) ;
int main()
{
int x = 2;
cout << getValue(x) << endl;
return 0;
}
int getValue(int num)
{
return num + 5;
}
A) 5
B) 2
C) 7
D) "getValue(x) "
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q5: The value in this type of local
Q6: Given the following function definition <br>void
Q7: Look at the following function prototype. int
Q12: A(n) _ argument is passed to a
Q12: Local variables are initialized to zero by
Q18: A function _ eliminates the need to
Q24: A function's return data type must be
Q24: Functions are ideal for use in menu-driven
Q34: A function is executed when it is<br>A)
Q40: A parameter is a special purpose variable