Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Why use argc and argv ??
2 Respostas
0
tq
0
argc4Ā
argv[0]gccĀ
argv[1]-oĀ
argv[2]myprogĀ
argv[3]myprog.c
As you can see, the first argument (argv[0]) is the name by which the program was called, in this caseĀ gcc. Thus, there will always be at least one argument to a program, andĀ argcĀ will always be at least 1.