Multiple choice

What will be the result of the given code snippet in C language? main() {
int x=1;
clrscr(); for(;x++;x%10?0:1) {
printf(%d,x*x); }
getch(); }

  1. Compilation error

  2. No output

  3. 149162536496481

  4. 49162536496481

  5. Infinite loop

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

x++ will always result in a non zero value and hence loop will never terminate.