What is the purpose of the 'break' statement within a loop?
- Continue to the next iteration
- Exit the loop
- Print a message
- Skip the current iteration
The 'break' statement is used to exit a loop prematurely. When encountered, it terminates the loop and continues with the next code after the loop.
Loading...
Related Quiz
- In a program that processes 3D graphics, you need to calculate the distance between points in space. What concept would be useful in efficiently handling the coordinates of these points?
- What is the time complexity of the linear search algorithm in the worst case?
- In C, what is the result of the expression (5 & 3)?
- The preprocessor directive ________ is used to include libraries in a C program.
- How can function pointers be used to implement callbacks in C?