Examlex

Solved

Which Line in the Following Program Contains a Call to the ShowDub

question 38

Multiple Choice

Which line in the following program contains a call to the showDub function?
1 \quad #include <iostream>
2 \quad using namespace std;
3
4 \quad void showDub(int) ;
5
6 \quad int main()
7 \quad {
8 \quad\quad int x = 2;
9
10 \quad\quad showDub(x) ;
11 \quad\quad cout << x << endl;
12 \quad\quad return 0;
13 \quad }
14
15 \quad void showDub(int num)
16 \quad {
17 \quad\quad cout << (num * 2) << endl;
18 \quad }


Definitions:

Related Questions