My C++ Quiz

The ultimate place to learn C++!

Question #78: According to the C++ standard which of the following declarations for the "main" function are valid?

1 int main(int argc, char** argv)
2 int main(char** argv, int argc)
3 int main()
4 inline int main(int argc, char* argv[])
5 int main(char* argv[], int argc)
6 void main()
7 int main(int argc, char* argv[])
8 static int main()
9 int main(int argc, char* argv[], char* options[])