Command line arguments in C explain in 1 minute

preview_player
Показать описание
argc stands for argument count and argv stands for argument vector. The two are used to handle command line input in C. Generally they take the form of int argc and char* argv[]
Рекомендации по теме
Комментарии
Автор

shit this is one of the best 1 minute and 28 secondes of my life XD

sharokhkeshawarz
Автор

I wish you make a video explaining the history behind this, who's responsible for this behavior of programs and arguments and when did it link to the main function

Yazan_Majdalawi
Автор

so if im not wrong, the 1 is the argument that call the execution of the program, then it sum up with the number of arguments, is possible to compare this command line arguments with string.h for example? Im speaking in the C language.

josuearielariasv.
Автор

Hey what syntax highlighter did you use for your nano, my nano has the built-in highlighter, your syntax colours look nice

agrnpr
Автор

Every YT video about int(main) parameters simply explains about what argc and argv mean and how to print them. EACH ONE OF THEM. Nobody actually explains what do these parameters serve. In what case would we actually need to read these vectors ? I doubt reading "hello" and "world" as parameters is useful in any coding scenario.

hiroboy