Multiple choice technology programming languages

What will the O/P of the bellow question ? ------------------- #include int main(){ printf("the size of main is %d\n",sizeof(main())); //OS is Linux return 0; }

  1. 1

  2. 2

  3. 4

  4. 0

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

The sizeof operator evaluates the type size at compile-time without executing the expression. Since main() returns an int, sizeof(main()) evaluates to the size of an int, which is 4 bytes on Linux GCC.