Which of the following is false for switch statement in C++?
C++ में स्विच स्टेटमेंट के लिए कौन सा गलत है?
Select one:
O a. IT USES LABELS INSTEAD OF BLOCKS
यह ब्लॉक्स की जगह लेबल का उपयोग करता है
b. WE CAN PUT RANGE FOR CASE SUCH AS CASE 1..3
हम CASE के लिए रेंज रख सकते हैं जैसे 1.3
O C. NONE
कोई नहीं
d. WE NEED TO PUT BREAK STATEMENT AT THE END ON THE GROUP OF STATEMENT OF A
LATH
हमें कन्डीशन के स्टेटमेंट ग्रुप के अंत में BREAK स्टेटमेंट को लगाने की आवश्यकता है
Answers
Answered by
1
Answer:
जब तक इसे कोई break Statement नहीं मिल जाता, तब तक ये सभी labels के Statement Block का Execution करता रहता है।
Attachments:
Answered by
0
C++
b) it uses labels instead of blocks.
all other statements is true regarding switch statement in C++.
- We can put ranges for case such as case 1..3 which has the syntax of case low.. high:
- We need to put break statement to stop the execution inside a switch block, it helps in terminating the switch block and break out of it, and the flow of control jumps to the next line following the switch statement. It is optional .
An image supporting the false statement is attached.
Attachments:
Similar questions