What is a situation where it makes a difference whether you leave main() blank vs if you put int argc, char *argv[] there?

A lot of times in programs I see

int main(int argc, char *argv[])

but then I put them in my IDE with just

int main() and they work fine. What is the point?
The former, int main(int argc, char *argv[]) is used when your program is using command line arguments. If you're not planning on using them, no need to include the two arguments.
http://www.cprogramming.com/tutorial/lesson14.html thats where i learned how to use them from. if you want a parser, then i suggest boost.program_options or getopt (the c way)
Topic archived. No new replies allowed.