Home / MCQ Bank / Computer
Computer Control Structures

How can you create an infinite loop in C?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Use a 'while' loop with a true condition

Related Computer Questions

Process of removing an element from stack is called ______ What will be the height of the hash tree with branching factor 2 and with 8 records? What will be the output of the following C++ code? #include <iostream> using namespace std; class rect { int x, y; public: void val (int, int); int area () { return (x * y); } }; void rect::val (int a, int b) { x = a; y = b; } int main () { rect rect; rect.val (3, 4); cout << "rect area: " << rect.area(); return 0; } If you echo a Boolean variable, the value FALSE displays as a ______ and the value TRUE echoes as a ______ You can use the format painter multiple times before you turn it off by