What do these arguments mean? via /r/learnprogramming


What do these arguments mean?

I have been learning C++ on my own for the past few weeks using several resources such as online material and books. One of the books I have been trying to work through is "C++ for Dummies (7th ed.)" by Stephen R. Davis and in pretty much all of his examples, he adds a main function with arguments as follows:

int main(int nNumberofArgs, char* pszArgs[]) {

//bla bla bla

}

What do the arguments of the main function mean? Nowhere else have I seen something like this (especially in a book aimed at beginner/intermediate level learners) and it is really annoying me because I know that it is not necessary for what he is trying to explain.

Submitted July 17, 2017 at 10:58AM by Elustri
via reddit http://ift.tt/2t8418X

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s