Click here to Skip to main content
15,891,248 members
Articles / Programming Languages / C

How CRT calls main , having different parameter

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
29 Apr 2012CPOL 5.6K   1  
Hi,We can write main function in several ways (sure there can be only one main in the program),1. int main()2. int main(int argc,char *argv[])3. int main(int argc,char *argv[],char * environment)How run-time CRT function knows which main should be called. Please notice here, I am...

Revisions


  

Compare Revision Minor Date Status Editor
2 - publicly available No 29-Apr-12 3:12 Available Pranit Kothari
1 No 29-Apr-12 2:55 Available Pranit Kothari

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions