Tuesday 22 February 2011

break and continue in c



Explanation
of break and continue in c programming language by examples and questions and
answers



break:



It is keyword of c
programming. Task of this keyword is to bring the control from out of the loop
in the case of looping. For example:



#include

int main(){

    int i;

    

    for(i=0;i<=4;i++){

        
printf("%d",i);

         break;

        
printf("Label 1");

No comments:

Post a Comment