₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,282 members, 8,421,174 topics. Date: Friday, 05 June 2026 at 09:41 PM

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? (3920 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

Programming ChallengeWays To Easily Get Content For Your Blog Or WebsiteCreative Skills To Improve Your Essay Writing