What does int argc, char *argv[] mean in C++ and C ?



in first idea, if your program need to process command line arguments you need to add "int argc, char *argv[]". The argv and argc are how command line arguments are passed to main() in C and C++.
And:
argc is the number of arguments being passed into your program from the command line
argv is the array of arguments.

This video will help you to understand " argc " and " argv ":


 
 

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel