1.

What is the output of following program? #include <iostream>  using namespace std;  int main()  {      char m;      switch (m) {      case 'c':          cout << "Computer Science";      case 'm':          cout << "Mathematics";          break;      case 'a':          cout << "Accoutant";          break;      default:          cout << "wrong choice";      }      return 0;  }   

A. Computer Science, Mathematics
B. Mathematics
C. wrong choice
D. error
Answer» D. error


Discussion

No Comment Found