My C Quiz

The ultimate place to learn C!

Question #20: What gets printed?

int i = 3;

if (!i)
    i++;
    i++;

if (i==3)
    i+=2;
    i+=2;

printf("%d\n", i);