Solved

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

Question 30

Multiple Choice

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


A) 6
B) 8
C) 9
D) 7

Correct Answer:

verifed

Verified

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

Related Questions