NewStats: 3,265,078 , 8,185,608 topics. Date: Friday, 13 June 2025 at 12:00 PM 3j1q1s6382y |
Is Main Function In C/c++ Defined Function Or Predefined Function? (3883 Views)
(1) (Go Down)
pskchary: 6:31pm On Oct 14, 2008 |
is main function in C/C++ defined function or predefined function?plz answer for this with explanation.
|
Kobojunkie: 7:20pm On Oct 14, 2008 |
pre-defined. Main is the entry point to your application that the compiler expects to see when running your application but in there you can make calls to your defined functions.
|
zaibatsu(m): 12:30am On Oct 16, 2008 |
@Poster Your question is a bit vague. Kobo has already answered the better part of it. Here's what's left. Some compilers (e.g devC++) pre-declare the main function when the creates a new C++ project. In others, the actual declaration of the main function is done by the . The initiated declaration is usually better tailored to the peculiarities of ones project. |
pskchary: 4:56am On Oct 16, 2008 |
thank u for giving me the answer.
|