Multiple Choice
What will the following code display?
#include <iostream>
Using namespace std;
Void showDub(int) ;
Int main()
{
int x = 2;
showDub(x) ;
cout << x << endl;
return 0;
}
void showDub(int num)
{
cout << (num * 2) << endl;
}
A) 2
2
B) 4
2
C) 2
4
D) 4
4
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q39: This type of variable is defined inside
Q40: A parameter is a special purpose variable
Q41: Which line in the following program
Q42: A local variable and a global variable
Q43: These types of arguments are passed to
Q44: It is good programming practice to _
Q45: When a function is called, flow of
Q46: A function _ contains the statements that
Q48: Which of the following causes a function
Q49: A function can have no parameters, one