Skip to content

Latest commit

 

History

History

0x0C-preprocessor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x0C. C - Preprocessor

Description

What you should learn from this project:

  • What are macros and how to use them
  • What are the most common predefined macros
  • How to include guard your header files

  • Create a header file that defines a macro named SIZE as an abbreviation for the token 1024.
  • Create a header file that defines a macro named PI as an abbreviation for the token 3.14159265359.
  • Write a program that prints the name of the file it was compiled from, followed by a new line.
  • Write a function-like macro ABS(x) that computes the absolute value of a number x.
  • Write a function-like macro SUM(x, y) that computes the sum of the numbers x and y.

Author