I'd like to know the use of argv and argc | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I'd like to know the use of argv and argc

I have been seeing these for a long time now in C and C-related PLs, I don't really know the use and meaning. Can someone help me with that?

4th Jun 2021, 4:02 PM
Neba Chi Smith
Neba Chi Smith - avatar
2 Answers
+ 1
You don't have to name them argv or argc because they are just names of arrays and the array is just the command line arument if given by user
4th Jun 2021, 4:59 PM
Eashan Morajkar
Eashan Morajkar - avatar
19th Jun 2021, 2:22 AM
Ipang