title: Where is main stored & is main a keyword? I do know that main() is a method but I am asking about "main"
body: <p>I do know about the main() method used in C/C++ &amp; Java but since the main() is user defined (as the code inside the main() is defined by the user, it can't be a predefined method) &amp; in C/C++ the main is not stored in a header file, then where is it exactly located so that the compiler first searches for it in a program? And is main a keyword or something else? I heard somewhere that it is an attribute used as a keyword but I am not sure. Can someone please help me with this? (I would like to know about this in case of both Java &amp; C/C++)</p>