Multiple Choice
What is the output of the following program?
#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
Q1: A local variable and a global variable
Q11: A(n) _ is information that is passed
Q17: This function causes a program to terminate,
Q22: EXIT_FAILURE and _ are named constants that
Q30: A function _ contains the statements that
Q32: In a function header, you must furnish:<br>A)data
Q38: Which line in the following program
Q41: The value in a(n) _ variable persists
Q45: Which line in the following program
Q46: Look at the following function prototype. int