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

Answer Posted / mayank jain

Main() is a user define function because user define it, and main is a keyword that is predefined, that also tell the compiler for the execution of program is starting from here.
when we Write the program we never declare the main function anywhere, only define it.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of objects used in c?

774


State the difference between x3 and x[3].

862


Why flag is used in c?

881


the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?

770


What is the best organizational structure?

893


Is c is a low level language?

820


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

1708


What is file in c preprocessor?

909


What is the difference between break and continue?

977


What is the use of #include in c?

828


What are logical errors and how does it differ from syntax errors?

944


What is the difference between null pointer and wild pointer?

937


What is the easiest sorting method to use?

850


What is difference between && and & in c?

874


How can I avoid the abort, retry, fail messages?

883