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 const int MY_VAL = 77;
7 MY_VAL = 99;
8 cout << MY_VAL << endl;
9 return 0;
10 }
A) 6
B) 8
C) 9
D) 7
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q9: The _ causes a program to wait
Q15: When a variable is assigned a number
Q16: When the fixed manipulator is used, the
Q25: The total number of digits that appear
Q27: What will the value of x be
Q28: If you want to know the length
Q29: Which statement will read an entire line
Q29: The _ operator always follows the cin
Q33: In the following C++ statement, what will
Q41: This manipulator causes the field to be