Topic : C-Language Documentation Author : John Kormylo Version : C.HYP 1.0 Subject : Documentation/C-Language Nodes : 233 Index Size : 6362 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ break ] When 'break' is encountered in a for, while or do-while loop, the loop will be terminated: for(i=0; i<100; i++) { ... if( array[i] == 0 ) break; ... } if(i < 100) ... /* execution will continue here */ When 'break' is encountered in a switch statement, execution jumps to the end of the block { }. 'break' MUST be used between case statements to prevent overlapping execution: switch( i ) { case 0: case 1: printf("Either 0 or 1 \n"); break; case 2: printf("2 only \n") }