Skip to content

Latest commit

 

History

History

0x09-argc_argv

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x09. C - argc, argv

About

An introductory project on:

  • How to use arguments passed to your program
  • The different prototypes for main and when to use them
  • How to use \_\_attribute\_\_((unused)) or (void)

Requirements

  • Ubuntu 14.04
  • gcc 4.8.4

File Descriptions

Mandatory

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

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

2-args.c - prints all arguments it receives.

3-mul.c - multiplies two numbers passed to the program as arguments.

4-add.c - adds all numbers passed to the program as arguments.

Advanced

100-change.c - prints the minimum number of coins to make change for an amount of money in cents.