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
Q16: You may use the exit() function to
Q17: A parameter is a special purpose variable
Q18: A function is executed when it is
A)
Q19: When a function is called, flow of
Q20: One reason for using functions is to
Q22: A _ argument is passed to a
Q24: It is good programming practice to _
Q25: This statement causes a function to end.
A)
Q26: A function _ eliminates the need to
Q40: What will the following code display?
#include
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents