Switch Statement In C Hindi | C Switch Case Condition In Hindi

Switch Statement In C in Hindi: Jab Kisi Program Me Bahut Sari if condition Ka Istemal Karte Hai to Program Bahut Jyada Complex Ban Jata Hai Jisse Samanjh Ne Me Jyada Dikkat Hoti | Issi Se bachne Ke Liye Ham Switch statement in hindi Ko Istemal Karte Hai |

Switch Statement In C Hindi

Jis Tarah If Else Condition kaam karti ussi tarah switch statement kaam karta hai.

Switch Ek Conditional Branching Statement Hai Jiska Pryog Ek Variable Ki Value Ke Anushar Bahut Sare Case Ko Check Karne Ke Liye Kiya Jata Hai | Iski Shurwat Mei Switch Statement Ke Sath Ek Variable Hota Hai, Bich Mei Case Statement Ke Sath Bahut Sare Statement Block Hote Hai Or End Mei Default Statement Ke Sath Default Statement BLock Hota Hai | Isme Shurwat Se Ek Ek Karke Variable Ki Value Ke Sath Sabhi Case Ko Check Kiya Jata Hai | Yadi Koi Bhi Case Variable Ki Value Se Match Karta Hai To Is Case Ke Under Likhe Statement Block Ko Execute Kiya Jata Hai | Or Yadi Koi Bhi Case Variable ki Value Se Match Nahi Karta Hai | To End Mei Default Statement Block Ko Execute Kiya Jata Hai | Iska Syntax Aap Niche Dekh Sakte Hai |

Syntax Switch Statement


switch (n)
{
    case 1:      // code to be executed if n = 1;
        break;

    case 2:     // code to be executed if n = 2;
        break;

    default: 
               // code to be executed if n doesn't match any cases
}

Flow Chart Switch Statement

Aap Niche Diye Gaye Flow Chart Ko Dekh Kar Switch Statement in Hindi Ko Understand Kar Sakte Hai |

Switch Statement In C
switch case statement in c language in Hindi

Switch Statement Example in Hindi :

Example:

#include <stdio.h> 
#include <conio.h>

int main() 
{ 
int x; 
clrscr();
printf("Enter The Choice No :");
scanf("%d",&x);

switch (x) 

{ 
	case 1: printf("Choice is 1"); 
		break; 

	case 2: printf("Choice is 2"); 
		break; 

	case 3: printf("Choice is 3"); 
		break; 

	default: 
               printf("Wrong Input"); 
	       break; 
} 
return 0; 
getch();
} 

Output:

Enter The Choice No:3
Choice is 3

C Switch Case Condition In Hindi

Dosto mujhe ummed hai ki aap Switch Statement in Hindi ko acchi tarah se samanj gye honge agar aap ko ye post acchi lage to mere is website ko jarur follow kre or ha agar aap video bhi dekhna chahte hai to aap mere channel ko bhi subscribe kar sakte hai. channel ka link aapko home page par mil jayega |

Danish Ali

I Am a Cyber Security Student & I have Skills C, C++ ,Python, HTML,CSS, Computer & Advance Hacking & Blogger & YouTuber.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons