On Fri, Oct 31, 2008 at 2:48 PM, Manoj Vivek <[EMAIL PROTECTED]> wrote:
> what are you saying.. I can't understand..... Where is main declared... How
> can it be printed as a integer using %d..... You are saying it is declared if
> it is declared what is the data type...
at the top of every C program.
int main() { ... }
You are printing the address of the main function. main is a function
that is defined to be the entry point of a C program. It can even be
called recursively (why you would want to do that is a separate
question altogether). If you pass main without the (), it is taken to
be the address of the function.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi