To create an infinite loop using a while loop, we can use the statement while(_______).
- FALSE
- 1
- 0
- "infinite"
A while loop continues execution as long as the condition within the parentheses is true. By using "while(1)", where 1 stands for true in the context of the loop's condition, it creates an infinite loop.
Loading...
Related Quiz
- What is the primary purpose of the return statement in C++ functions?
- The concept of Streams in C++ was introduced in the standard with _______.
- In the context of recursion, what is a "recursive case"?
- When a class B is inherited publicly from a class A, then the protected members of class A will become _______ in class B.
- Which of the following is a correct way to declare a function pointer in C++?