Which line in the following program contains a call to the showDub function?
1 #include <iostream>
2 using namespace std;
3
4 void showDub(int) ;
5
6 int main()
7 {
8 int x = 2;
9
10 showDub(x) ;
11 cout << x << endl;
12 return 0;
13 }
14
15 void showDub(int num)
16 {
17 cout << (num * 2) << endl;
18 }
A) 4
B) 6
C) 10
D) 15
Correct Answer:
Verified
Q17: A parameter is a special purpose variable
Q19: When a function is called, flow of
Q21: A local variable and a global variable
Q22: What is the output of the
Q25: Here is the header for a function
Q26: If a function does not have a
Q27: If a function is called more than
Q28: Which line in the following program
Q29: A(n) _ argument is passed to a
Q34: Which line in the following program
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