Before revision: C and C++ In C and C++, the function prototype of the main function looks like one of the following: int main(void); int main(); int main(int argc, char **argv); int main(int argc, char *argv[]); int main(int argc, char **argv, char **env); // more specifically in C // NOT according to the ISO C standard 5.1.2.2.1 // BUT in embedded programming depending on the µC, this form is also used void main (void); Main function looks like entry point for application programmers (the application's entry point or main entry point).
After revision: C and C++ In C and C++, the function prototype of the main function must be equivalent to one of the following: int main(void); int main(); int main(int argc, char **argv); int main(int argc, char *argv[]); int main(int argc, char **argv, char **env); // more specifically in C // NOT according to the ISO C standard 5.1.2.2.1 // BUT in embedded programming depending on the µC, this form is also used void main (void); Main function looks like entry point for application programmers (the application's entry point or main entry point).