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 int number = 5;
7
8 \quad\quad if (number >= 0 && <= 100)
9 \quad\quad\quad cout << "passed.\n";
10 \quad\quad else
11 \quad\quad\quad cout << "failed.\n";
12 \quad\quad return 0;
13 \quad }


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

Correct Answer:

verifed

Verified

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

Related Questions