Solved

Which Line in the Following Program Will Cause a Compiler \quad

Question 39

Multiple Choice

Which line in the following program will cause a compiler error?
1 #include <iostream>
2 using namespace std;
3
4 int main()
5 {
6 \quad const int MY_VAL = 77;
7 \quad MY_VAL = 99;
8 \quad cout << MY_VAL << endl;
9 \quad return 0;
10 }


A) line 6
B) line 7
C) line 8
D) line 9
E) there will be no compiler error

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions