argc
is the number of command line arguments given to the program at runtime, and argv
is an array of arrays of characters (rather, an array of C-strings) containing these arguments. If you know you're not going to need the command line arguments, you can declare your main at taking a void
argument, instead:
int main(void) {
/* ... */
}
Those are the only two prototypes defined for main
as per the standards, but some compilers allow a return type of void
as well. More on this on Wikipedia.