argv argc
In this session, we'll cover argv
and argc
as used in C programming.
- Arguments to main
- argv and argc
- What does argv and argc mean in C
- How to compile with unsed variables
After going through the above resources, you should be able to explain to anyone without the help of Goolge the following concepts.
- How to use arguments passed to your program
- What are two prototypes of main that you know of, and in which case do you use one or the other
- How to use
attribute((unused))
or(void)
to compile functions with unused variables or parameters