Advertising
C standard allows to choose from- Code: Select all
int main()
int main(int argc, char* argv[])
Anything not this (or equivalent, like int main(void)) is not standard.
ANSI C source
|
int main()
int main(int argc, char* argv[])

failbit wrote:It doesn't make a big difference but if you are programming for an OS you should always use int main. void main is mostly used when you are programming a microcontroller which has no OS so a return value would be useless.
ultimakillz wrote:we've had this discussion before, but maybe this article will explain it better:
http://www.gidnetwork.com/b-66.html
m0skit0 wrote:C standard allows to choose from
- Code: Select all
int main()
int main(int argc, char* argv[])
Anything not this (or equivalent, like int main(void)) is not standard.
ANSI C source

Users browsing this forum: No registered users and 0 guests
Coding 'n Cracking - Nymphaea - PS3 Forum - darkforestgroup - daxhordes.org - Tgames - coldbird - gopsp.it - pspstation.org - prometheus - hgoel.info - MakeSmartTV - ps vita