answersLogoWhite

0

Sure. (You could have tried it yourself.)

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What statement is used to exit aloop?

break;


What is break in c?

The break statement is used to exit a loop or switch-case.


What advantage does Java's break statement have over C's break statement?

They do the same thing, but only the former can be used in a Java program.


What are the differences between Break Continue and Exit?

break - The break statement is used to jump out of loop. After the break statement control passes to the immediate statement after the loop.continue - Using continue we can go to the next iteration in loop.exit - it is used to exit the execution of program.note: break and continue are statements, exit is function.


What is the use of break in c programming?

The break statement is used to exit the nearest enclosing scope. Control passes to the first statement that comes after that enclosing scope.


Who can used to exit from a loop?

If you meant 'what can be used' then it is statement break.


Can break statement be used without any loop?

The Break statement should generally get executed in some loop or switch statement. The below code will give compiler error. void main() { printf("12"); break; printf("14"); }


How do you break a loop in a switch case statement?

using break; statement


The break statement is required in the default case of a switch selection structure?

Ends the case statement. Without it, any code after where the break; is supposed to be will get executed as well until it does encounter a break; or the end of the switch.Code Example:char cTest = 'a';switch(cTest) {case 'a':/* Code here gets executed. */case 'b': //* Code here gets executed. */case 'c':/* Code here gets executed. */break;case 'd':/* Code here won't be executed. */default:/* Code here won't be executed. */}


What is the purpose of break statement in c?

The break statement exits control of the innermost for, while or do-while loop, or switch statement.


What are break and continue statement in c language?

Break is used to exit the closest loop. Continue will cause the program to go to the beginning of the loop. for(int x=0;x<10;x++) { //continue; for(int y=0;y<10;y++) { break; } } The break statement causes the inner loop to stop at the first iteration. If the continue statement was uncommented, the inner loop would never be executed because the program would jump back to the beginning(until x = 10 of course).


What is the format of the switch statement?

switch (expression) { case value 1 : [ statement-block 1] [break ;] case value 2 : [ statement-block 2] [break ;] ……. ……. case value N : [ statement-block N] [break ;] [default: [default block] [break;] ] } statement x;