What are the arguments to main() for?

Viewed 13186

Everytime I create a project (standard command line utility) with Xcode, my main function starts out looking like this:

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

What's all this in the parenthesis? Why use this rather than just int main()?

5 Answers
Related