answersLogoWhite

0


Best Answer

The main function in C is user-defined. Built-in functions are simply those that do not require a library to be included, but every program must provide a user-defined point of entry; it cannot be built-in. Indeed, most functions in C are user-defined; the built-in functions are mostly operators rather than functions although most do behave like functions. The standard library functions are not built-in either; they all require the inclusion of the appropriate standard library header.

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is the main function in C a built-in function or user-defined function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does the function counter do and what are its parameters?

There is no builtin function 'counta' in C.


Main function in c?

The main function defines the entry point of an application in C.


How do you include userdefined headerfiles in c plus plus program?

#include "what-its-name-is.h"


Who is calling main function in c?

in c main function initailly called by operating system.


What is main function used in c?

if you do not used main function in c program when errors are accrued


What must every c program have?

A main function must be present in every C program.


What is the main function of C?

The main function is the entry point for the application. Each program written in C or C++ will start at the first line in the main function, and cease execution once the main function returns control to the operating system (either via a return keyword in the main function, an exit(3) function call, or by "running off" the end of the main function). A program will not compile if it is missing the main function. Some variants of C++ have an alternate entry point (including those written for Microsoft Windows).


Why you use main function in c?

Because if you donot use main function in c program, the compiler willnot execute the program.C compiler starts execution from main function itself.


Can you use main function as a recursive function in C?

Yes


Is main a predefined function in c?

yes


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.


Where void main is called in c?

main() is the function from where the execution starts.