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?