samedi 30 juillet 2016

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

Possible Duplicates:
What are the arguments to main() for?
What does int argc, char *argv[] mean?

Every program is starts with main(int argc, char *argv[]) definition . I don't understand what it means. I would be very glad if somebody could explain why we use these arguments if we dont use them in the program? Why not just: int main()?

EDIT:

The name of the program is one of the elements of *argv[] and argc is the count of the number of arguments in *argv[]? What are the other arguments sent to *argv[]? How do we send them?

Aucun commentaire:

Enregistrer un commentaire