in Technology by (1.9m points)
What are the valid places for the keyword break to appear in C-Programming?

1 Answer

0 votes
by (1.9m points)

Break can appear only with in the looping control and switch statement. The purpose of the break is to bring the control out from the said blocks.

Explain the syntax for for loop.

for(expression-1;expression-2;expression-3) {

   //set of statements


When control reaches for expression-1 is executed first. Then following expression-2, and if expression-2 evaluates to non-zero ‘set of statements’ and expression-3 is executed, follows expression-2.

Related questions

0 votes
asked Jan 17, 2021 in Technology by JackTerrance (1.9m points)
0 votes
asked Dec 20, 2021 in Education by JackTerrance (1.9m points)