Multiple choice technology programming languages

#define TRUE 0 // some code while(TRUE) { // some code }

  1. infinite loop

  2. Error

  3. This will not go into the loop as TRUE is defined as 0.

  4. 0

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The macro preprocessor replaces TRUE with the value 0. In C, any loop controlled by while(0) evaluates to false immediately. As a result, the program will bypass the loop body entirely rather than resulting in an compilation error or an infinite loop.