How does the continue statement affect the execution of a nested loop structure?
- It jumps to the next iteration of the innermost loop.
- It jumps to the next iteration of the outermost loop.
- It stops the entire program execution.
- It restarts all loops from the beginning.
The continue statement causes the current iteration of the loop to terminate, and the control jumps to the next iteration of the innermost loop that contains the continue. It won't affect any outer loops in the nested structure unless it's placed in the outer loop itself.
Loading...
Related Quiz
- When dynamically allocating an array of integers using new, which of the following syntax is correct?
- In the context of operator overloading, the expression a + b is equivalent to _______.
- How does the short-circuit evaluation work in logical operators?
- Regarding memory alignment and data packing, which of the following is true for structs in C++?
- How does the C++ compiler handle different types of exceptions in a function template?