break and continue statement in hindi

Break and Continue Statement in C In Hindi

C

Break and Continue Statement in C in Hindi:- Break Condition in C in Hindi program ko break Karne ke liye istemal Karte hai | Continue Condition in C in Hindi ko ham program ko continue Karne Kar Liye istemal Karte hai |

Read Also :- For While And Do-While

Break and Continue Statement in C In Hindi

Contents

Jab Ham Loop ko Istemal karte Hai, To hame Loop Ko Kahi Par Rookna Bhi Pad jata Hai To Uske Liye Ham Break Statement Ka Istemal karte Hai Or Agar Me Loop me Kahi Par Bhi Statement Ke Kisi Number Ko Pass Karna Hai To Hame Continue Ka Istemal Karna Padta Hai |

C Language Break And Continue Ko Niche Details Me Bataya Gaya Hai |

Break Statement In C In hindi

Break Condition in C :- Break Statement Ko Hamne Is Post me Acchi tarah se Samanjha ya gya hai with Example Ke Sath |

Break Statement Ko Hamne Is Post me Acchi tarah se Samanjha ya gya hai with Example :

Flow Diagram :-

break and continue statement
break and continue statement | difference between break and continue

Syntax :-

break;

Example :-

#include <stdio.h>
 
int main () {

   /* local variable definition */
   int a = 1;

   /* while loop execution */
   while( a <= 10 ) 
       {
   
      printf("value of a: %d\n", a);
      a++;
		
      if( a == 5)
      {
         /* terminate the loop using break statement */
         break;
      }
   }
 
   return 0;
}

Output :-

value of a: 1
value of a: 2
value of a: 3
value of a: 4
value of a: 5

Aap upper diye gye output me dekh sakte hai output keval 5 tak print hua jo ki aapne program ko 10 tak print karane ke liye kaha. lekin wo break condition ki wajah se break ho gya.

Continue Statement In C In Hindi

Continue Condition in C ko ham program ko continue karne kar liye Istemal karte hai | Continue Statement Ko Hamne Is Post me Acchi tarah se Samanjha ya gya hai with example :

Continue Statement Ko Hamne Is Post me Acchi tarah se Samanjha ya gya hai with example :

Flow Diagram

break and continue statement | difference between break and continue statement in c with example
break and continue statement

Syntax :

continue;

Example :-

#include <stdio.h> 

int main() { 
	// loop initialization expression 
	int i = 1; 

	// infinite while loop 
	while (i<=10)
      { 
		if (i == 5) 
			continue; 

		printf("%d \n ", i); 
		i++; 
	} 

	return 0; 
} 


Output :-

1
2
3
4
6
7
8
9
10

aap Upper diye gye output ko dekh sakte hai ki output me 5 print nhi hua hai kyoki 5 ko continue kar diya gya .

Also Read More Post:

Dosto mujhe ummed hai ki aap break and continue 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 |

Leave a Reply

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