0
Can someone complete this c++ switch statement code. The two dashes are blank and it needs to be answered to complete the code.
The output should be "Error" Switch (x){ case 1: cout<<"One"; break; case 2: cout<<"Two"; break; __: cout<<"Error"; } } Note that the output should display "Error"
2 Respuestas
+ 1
Let me try..
0
I would assume the last part with error is a catch for things not matching any other case. Thus I would imagine a default case is needed. Keyword default.