Q. What is the output of the following program?
Code:
#includeusing namespace std; int main () { // local variable declaration: int x = 1; switch(x) { case 1 : cout << "Hi!" << endl; break; default : cout << "Hello!" << endl; } }
Discusssion
Login to discuss.