Solved

What Will the Following Code Display?
#Include ≪iostream>
Using Namespace \quad

Question 47

Multiple Choice

What will the following code display?
#include <iostream>
Using namespace std;
Void showDub(int) ;
Int main()
{
\quad int x = 2;
\quad showDub(x) ;
\quad cout << x << endl;
\quad return 0;
}
void showDub(int num)
{
\quad cout << (num * 2) << endl;
}


A) 2
2
B) 4
2
C) 2
4
D) 4
4

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions