₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,304 members, 8,421,235 topics. Date: Saturday, 06 June 2026 at 04:46 AM

Toggle theme

Is Main Function In C/c++ User Defined Function Or Predefined Function? - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingIs Main Function In C/c++ User Defined Function Or Predefined Function? (3922 Views)

1 Reply (Go Down)

Is Main Function In C/c++ User Defined Function Or Predefined Function? by pskchary(op): 6:31pm On Oct 14, 2008
is main function in C/C++ user defined function or predefined function?plz answer for this with explanation.
Re: Is Main Function In C/c++ User Defined Function Or Predefined Function? by 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 user defined functions.
Re: Is Main Function In C/c++ User Defined Function Or Predefined Function? by 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 user creates a new C++ project. In others, the actual declaration of the main function is done by the user.
The user initiated declaration is usually better tailored to the peculiarities of ones project.
Re: Is Main Function In C/c++ User Defined Function Or Predefined Function? by pskchary(op): 4:56am On Oct 16, 2008
thank u for giving me the answer.
1 Reply

[problem] Write A Program In C++ That Finds The Hcf Of 2 Numbers Without Using A Recursive FunctionSimple Code Challenge: C#, Java, C, C++Without Using Pow Function In C234

Exception In Thread "main" NoclassDefFoundError; Class NameDownload Spynote RAT V6.5 And Hack Android Devices RemotelySine Wave Inverter Using Arduino