1.

Point out the error, if any in the program._x000D_ #include_x000D_ int main()_x000D_ {_x000D_ int P = 10;_x000D_ switch(P)_x000D_ {_x000D_ case 10:_x000D_ printf("Case 1");_x000D_ _x000D_ case 20:_x000D_ printf("Case 2");_x000D_ break;_x000D_ _x000D_ case P:_x000D_ printf("Case 2");_x000D_ break;_x000D_ }_x000D_ return 0;_x000D_ }

A. Error: No default value is specified
B. Error: Constant expression required at line case P:
C. Error: There is no break statement in each case.
D. No error will be reported.
Answer» C. Error: There is no break statement in each case.


Discussion

No Comment Found