The *sizeof* operator cannot be used with the following operands:

   - Functions. (However, *sizeof* can be applied to pointers to functions.)
   - Bit fields.
   - Undefined classes.
   - The type *void*.
   - Dynamically allocated arrays.
   - External arrays.
   - Incomplete types.
   - Parenthesized names of incomplete types


so when you use main....its the name of a function and not pointer....in 
this case we get an implementational dependent unsigned integer which can be 
1 too...
if you write sizeof(main()) or sizeof(&main)...you will get 4 which will be 
the size of a pointer

   - 

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/3QR9gCcejnIJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to