Solved

What Is the Output of the Following Program?
#Include \quad

Question 42

Multiple Choice

What is the output of the following program?
#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