Solved

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

Question 31

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

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