Multiple choice

What will be the output of the following code snippet? main() {
int a=11,b; clrscr();
for(a%10;a++); printf(%d,a%10?0:1);
getch(); }

  1. 111111111

  2. 1111111110

  3. 0000000001

  4. 000000000

  5. 0000000000

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

If a%10 yields non zero value, then 0 would be printed until a%10==0