Skip to content

Latest commit

 

History

History

0x0A-argc_argv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

img

argv argc

Intro

In this session, we'll cover argv and argc as used in C programming.

Resources

  1. Arguments to main
  2. argv and argc
  3. What does argv and argc mean in C
  4. How to compile with unsed variables

Learning objectives

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