English

What is control variable in a switch statement? - Computer Applications

Advertisements
Advertisements

Question

What is control variable in a switch statement? 

Answer in Brief

Solution

In a switch statement, a variable that takes the control to move or jump to a particular case, satisfying the value is called a control variable. 

For example: switch (p)

Here, p is the control variable.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.08: Conditional Statements in Java - Review Insight [Page 97]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.08 Conditional Statements in Java
Review Insight | Q 1. | Page 97
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×