function pointer so answer is size of pointer can be 4 or 2 depending on word size
On Tue, Sep 6, 2011 at 11:21 PM, siddharam suresh <[email protected]>wrote: > *main()* is an address/probably the function pointer, > Thank you, > Sid. > > > > On Tue, Sep 6, 2011 at 11:19 PM, Sanjay Rajpal <[email protected]> wrote: > >> #include <stdio.h> >> #include<conio.h> >> int main() { >> >> printf(" %d",sizeof(main())); >> ... getche(); >> return 0; >> } >> o/p is 4..how ??? >> >> >> Sanju >> :) >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
