Skip to content

Latest commit

 

History

History

0x0A-argc_argv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x0A. C - argc, argv

About

  • 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

Files & Descriptions

0-whatsmyname.c a program that prints its name, followed by a new line

1-args.c a program that prints the number of arguments passed into it

2-args.c a program that prints all arguments it receives

3-mul.c a program that multiplies two numbers

4-add.c a program that adds positive numbers

100-change.c a program that prints the minimum number of coins to make change for an amount of money