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

"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

664


Is sizeof a keyword in c?

586


Why is main function so important?

621


State two uses of pointers in C?

644


write a program to copy the string using switch case?

2406






How to write c functions that modify head pointer of a linked list?

550


What is the sizeof () a pointer?

557


Explain the ternary tree?

607


How can I recover the file name given an open stream or file descriptor?

603


What is structure in c explain with example?

651


Explain 'bus error'?

569


What language is lisp written in?

628


Combinations of fibanocci prime series

1119


In which language linux is written?

607


What are enums in c?

667