In c , main() is a function . and where is defined main() in c. bcz every function has three parts. 1>. decleration 2>. definition. 3>. calling

Showing Answers 1 - 4 of 4 Answers

Neela A

  • Jun 8th, 2006
 

main is a definition block only.

  Was this answer useful?  Yes

Vijay

  • Jun 18th, 2006
 

Declaration is not needed if method is defined before calling.main() method is called by the OS when the program is run.So, it has only a definition..

  Was this answer useful?  Yes

sankar

  • Jun 27th, 2006
 

the computer identifies where the program start with the help of the main function. 

  Was this answer useful?  Yes

anuradha jena

  • Aug 3rd, 2006
 

Every function have 3 parts1.Declaration2.Defination3.callNow i think we have heard about 2 thins i.e User definded function & system definded function.What is User definded function?The function which is definded by user.What is System definded function?System definded function is the function which is definded by the system.Now 1 question is coming that main() is belonging to which function.main() is a system definded,system call & user declare function.For e.g suppose u have declared a function i.e add()u r declaring,defining & calling by us.But for e.gCosider a program i.e#include"stdio.h"void main(){ printf("add");}in between { & }we can write any thing but we can't change the name of the function i.e mainbut we can change the name of add() to sub()IMP is only logic which is definded in the function.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions