What is displayed by the C++ statements that follow if the value input is 0?
```
cin >> color;
switch (color) {
case 0:
case 1:
cout << "red ";
case 2:
cout << "blue ";
case 3:
cout << "green ";
case 4:
cout << "yellow ";
}
cout << endl;
```
a. no output
b. red
c. yellow
d. red blue green yellow
d. red blue green yellow
Computer Science & Information Technology
You might also like to view...
Closing a file causes any buffered information to be
A) saved to the file. B) deleted. C) stored in a buffer for safekeeping. D) duplicated. E) None of the above
Computer Science & Information Technology
List the four steps in the training process.
What will be an ideal response?
Computer Science & Information Technology