Multiple choice technology programming languages

What will be the output of the following program : void main() { printf("%d",sizeof(integer)); }

  1. 2

  2. 4

  3. Compile-Time Error

  4. None of the above

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

'integer' is not a valid C type - it should be 'int'. Since 'integer' is undefined, sizeof(integer) will cause a compilation error. This tests awareness of correct C type names.