Which of the following is false for switch statement in C++?
(1) It uses labels instead of blocks
(2) we need to put break statement at the end of the group of statement of a condition
(3) we can put range for case such as case 1..3
(4) None of these
In C++ it will not use labels instead of blocks.
so the answer is It uses labels instead of blocks
The right answer is: 1) It uses labels instead of blocks.
In C++ switch statements will not use labels instead of blocks.
we can put range for case such as case 1…3
Answer: (1) It uses labels instead of blocks.
Explanation:
According to question Except for option 1 all other options are true according to the switch statement in C++.