Which line in the following program contains the header for the showDub function?
1 #include <iostream>
2 using namespace std;
3 void showDub(int) ;
4 int main()
5 {
6 int x = 2;
7 showDub(x) ;
8 cout << x << endl;
9 return 0;
10 }
11 void showDub(int num)
12 {
13 cout << (num * 2) << endl;
14 }
A) line 3
B) line 4
C) line 7
D) line 11
Correct Answer:
Verified
Q38: _ functions may have the same name
Q39: This function causes a program to terminate,
Q40: What will the following code display?
#include
Q41: What is the data type of the
Q42: Select all that apply. Which of the
Q44: Which line in the following program
Q45: What will the following code display?
#include
Q46: Given the following header for a function
Q47: Select all that apply. Which of the
Q48: In the following function prototype, how many
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