Which line in the following program contains the header for 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
Q19: When a function is called, flow of
Q25: Here is the header for a function
Q26: If a function does not have a
Q27: If a function is called more than
Q29: A(n) _ argument is passed to a
Q30: Which line in the following program
Q36: This is a dummy function that is
Q37: EXIT_FAILURE and _ are named constants that
Q37: What is the output of the
Q39: What is the output of the
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