Using Range in the Case Values of Switch Statement | C++ Programming Video Tutorial ( Hindi )

preview_player
Показать описание
In this c++ programming video tutorial in hindi you will learn to use Range in the switch statement case values with example.

GCC Compiler allows you to use this feature. usage of the range in the case values of the switch statement allows the programmer to execute a set of statements for a range of values.

Syntax for using the Range in switch case values
case LowerLimit ... upperlimit:

while using this feature you have to follow 2 rules.
LowerLimit can not be greater than the upperlimit.
none of the cases should contain overlapping values ( one value should not have matches in 2 or more cases ).

Subscribe for more tutorials

Social Media Links

#CPP #C++ProgrammingHindi #LearningLadHindi #ComputerProgramming
Learn#WithMe
Рекомендации по теме
Комментарии
Автор

Bhaai aapke videos ki bohot zarrurat hai.. please upload karo c++

TrickstarKeshu
Автор

#include <iostream>
Using namespace std;
Int main ( )
{
Char alphabet ;
Cout << "enter a alphabet character " ;
Cin>>" alphabet " ;
Char x= alphabet
Switch (x)
Case a ... m:
Cout<< "case for upper level alphabet " ;
break;
Case n ... z :
Cout << " case for lower level alphabet" ;
break;
default :
Cout << " Default case statement" ;
return 0 ;
}

Is this correct sir .

dikshajain