main is a predefined or user define function
if user defined why?
if predefined whay?

Answer Posted / vignesh1988i

actually main function is a user defined function for the C
compiler developer.... but it is a built in or predefined
function according to the users using that compiler.... why
it is called as a predefined function because , the
prototype has already been defined in the compiler itself
we the users can't change the meaning of that unless or
until we write our own compiler , we can change the meaning
of main()......

for the main() , we don't know what is the prototype or
where the function has been called and wht excatly the
return value of it... it is built in and abstracted from the
user which is called abstraction in c++.........


thank u

Is This Answer Correct ?    64 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the total generic pointer type?

737


Why is c called a structured programming language?

690


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

598


What is a structure member in c?

556


What is the difference between a function and a method in c?

569






If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

626


Can a pointer point to null?

594


What is scope rule in c?

611


Explain what are the standard predefined macros?

659


How can I open files mentioned on the command line, and parse option flags?

597


what is recursion in C

620


What is a null string in c?

595


What are the different types of control structures?

592


What is the difference between arrays and pointers?

638


Is boolean a datatype in c?

555