Solved

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

Question 45

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents