P
pankaj do it
hi
what is the difference between the main() function of c and c++
what is the difference between the main() function of c and c++
pankaj do it said:what is the difference between the main() function of c and c++
pankaj said:what is the difference between the main() function of c and c++
Marcel Müller said:There is no difference.
There is no difference. Both have the same signature. Both use
C linkage.
Isn't this largly determined by the startup code as a
practical matter? If so, it seems that basically it's
implementation defined even in c.
It's probably just a personal limitation, but I can't imagine
a reason to call main from anything other than startup code.
Seems like any attempt to do so would need to diddle
implementation defined environment stuff to be effective. To
use Kernighan's phrase, am I suffering from a "poverty of
imagination"?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.