Multiple choice

What will be the output of the following code snippet in C language? main() {
int j=0,i;
clrscr();
for(printf(nValue is not initialized here.); j++;) {
if(j>10) break;
else {
i=j*2; printf(%d,i);
}
}
getch(); }

  1. Infinite loop

  2. Syntax error

  3. Value is not initialized here

  4. 24681012141618

  5. 1820

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

Test expression not specified at right place, still the for loop wont execute even once But j++ would yield 0 as j’s read value will be 0, after which it is incremented.