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

Which is better oop or procedural?

833


How do I copy files?

829


Is register a keyword in c?

846


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

1847


What is the difference between far and near in c?

824


write a program to print largest number of each row of a 2D array

2117


What is fflush() function?

904


How does #define work?

861


How does selection sort work in c?

828


Explain what is wrong with this program statement?

888


Can a pointer be null?

790


What are the properties of union in c?

830


What is the size of a union variable?

812


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2665


How can I read and write comma-delimited text?

864