A for loop that doesn’t specify the initialization, condition, and increment is known as a _______ loop.
- endless
- infinite
- forever
- boundless
In C++, when a for loop does not specify initialization, condition, and increment, it becomes an infinite loop. This means it will keep running indefinitely unless an external factor (like a break statement) interrupts its execution.
Loading...
Related Quiz
- The bitwise NOT operator (~) performs a _______ operation on each bit of a number.
- The enum class introduces _______ scope to prevent enumerators from polluting the namespace.
- Imagine you are developing a Graphic Design Application where different types of shapes are drawn. Which OOP concept will simplify the code?
- The _______ function is used to move the file pointer to a specified position in the file.
- In terms of object-oriented design principles, what is typically the most significant critique against the use of friend functions?