Q. How many times do we get through the following loop?
Code:
int c = 10;
while (( c <11 ) {
printf("Hello World\n");
}
β
Correct Answer: (D)
it is an infinite loop
Explanation: while (( c <11 ) {...}
We tell the computer “As long as the condition is true (10 < 11), repeat the instructions between braces”.