πŸ“Š C Programming
Q. How many times do we get through the following loop?
Code:
int c = 10;

while (( c <11 ) { 
  printf("Hello World\n"); 
}
  • (A) 0
  • (B) 1
  • (C) 9
  • (D) it is an infinite loop
πŸ’¬ Discuss
βœ… 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”.

Explanation by: Admin
while (( c <11 ) {...}
We tell the computer “As long as the condition is true (10 < 11), repeat the instructions between braces”.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
211
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
81%
Success Rate