Why is the result of:
sizeof(function_name)?
1
? Somebody in community said that sizeof(main)
is 1 but sizeof(main())
is 4. Here main
is returning int
, so it is returning 4. but if we do declaration as char main()
instead of int main()
it will return 1 only.