When a continue statement is encountered in a loop, the program control resumes from _______.
- next statement
- loop condition
- beginning of loop
- end of loop
The continue statement, when encountered inside a loop, causes the program to skip the rest of the current iteration and move directly to the loop condition to check if the next iteration should commence. In essence, it "continues" to the next iteration of the loop without finishing the current one.
Loading...
Related Quiz
- When passing by reference, changes made to the parameter within the function _______ the original argument.
- The goto statement can only jump to labels within the same _______.
- In a large-scale C++ project, two classes, Logger and FileHandler, are tightly coupled, sharing a lot of private data between them using friendship. How might you refactor these classes to reduce coupling without losing functionality?
- Imagine you are maintaining a C++ application where memory leaks are a constant issue. Which type of pointer would be the best to use to ensure that dynamically allocated objects are properly deallocated?
- How does the return statement interact with constructors or destructors in C++?