Alter the normal execution flow of loops using `break` to exit and `continue` to skip an iteration.
The `break` and `continue` statements are two powerful tools in C that give you finer control over the behavior of loops (`for`, `while`, `do-while`) and `switch` statements. The `break` statement is used to immediately terminate the innermost loop or `switch` statement in which it appears. When a `break` is encountered, the program's control jumps to the very next statement following the loop or `switch` block. It provides a way to exit a loop prematurely, often based on a specific condition that is checked inside the loop body. For example, you might use `break` to stop a search loop as soon as the desired item is found, making the loop more efficient by avoiding unnecessary iterations. It is the same statement used in `switch` blocks to prevent fall-through. The `continue` statement, on the other hand, does not terminate the loop entirely. Instead, it skips the remainder of the current iteration and proceeds directly to the next one. When `continue` is executed, any code in the loop body after the `continue` statement is ignored for that iteration. The loop's control then moves to the loop's update step (in a `for` loop) or the condition check (in a `while` or `do-while` loop) to begin the next iteration. This is useful when you want to bypass a specific case or value within a loop without exiting the loop altogether, for instance, skipping the processing of negative numbers in a list of positive integers.