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

Description

What you should learn from this project:

  • 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

  • Write a program that prints its name, followed by a new line.
  • Write a program that prints the number of arguments passed into it.
  • Write a program that prints all arguments it receives.
  • Write a program that multiplies two numbers.
  • Write a program that adds positive numbers.
  • Write a program that prints the minimum number of coins to make change for an amount of money.

Author