In a for loop, if a continue statement is executed, then the control jumps to _______.
- beginning of loop
- end of loop
- next iteration
- next statement
When a continue statement is encountered inside a loop, it skips the remaining portion of the current iteration and jumps to the start of the next iteration. In a for loop, this means the loop's update statement (like i++ in for(int i=0; i<10; i++)) gets executed.
Loading...
Related Quiz
- In C++20, using enum with _______ allows specifying the underlying type and scope.
- Which loop structure is guaranteed to execute at least once even if the condition is false?
- What is slicing in the context of object-oriented programming in C++?
- Your team is developing a C++ application involving several classes with complex interrelationships and data handling. How can abstraction be effectively implemented to simplify the interactions between different class objects and the user?
- When replacing nested if-else structures with a switch-case, what is a common pitfall to avoid?