Programming MCQS - QUESTION DETAILS

What is the purpose of the 'break' statement in a switch statement?
A. Exit the program
B. Skip to the next case
C. Exit the loop
D. Terminate the switch statement

'break' is used to terminate a switch statement.

Similar Questions

How do you open a file for writing in C?






What is the purpose of the 'continue' statement in a loop?






What is the purpose of the 'strcat' function in C?






Which operator is used to access the value pointed to by a pointer in C?






Which of the following is a bitwise AND operator in C?






What does the 'sizeof' operator return for a pointer variable?






What is the output of printf("%s", "Hello" + 1);?






What is the role of the 'strcpy' function in C?






What is the purpose of the 'fgets' function in C?






How do you close a file in C?