Computer Science, asked by singhshantanu472, 7 months ago

Which of the following is not a jump statement in C++?
C++ में निम्नलिखित में से कौन सा Jump स्टेटमेंट नहीं है?
Select one.
O A. GOTO
GOTO
B. SWITCH
SWITCH
OC. BREAK
BREAK
O D. EXIT
EXIT​

Answers

Answered by jainsneha42129
2

B. switch is not a jump statement

Answered by mad210203
2

Switch (Option B is correct).

Explanation:

  • Switch statement is used to execute a particular statements from several available statements.
  • Switch statement executes one and only one statement from multiple conditions.
  • It allows us to make decision from the number of choices.
  • It is multi way decision statement.
  • It will test the value of given expression against a list of case values and when a match is found, the block of statements associated with that case are executed.
  • If any condition does not match, it executes default statements.
  • It is like if else if ladder statement.
  • Syntax:

      switch(expression){

      case 1:  

                    statements;

                    break;

      case 2:  

                    statements;

                    break;

      case 3:  

                    statements;

                    break;

      case 4:  

                    statements;

                    break;

      case 5:  

                    statements;

                    break;

      default:

                    statements;

                    break;

  • So, switch statement is not a jump statement.
Similar questions