Skip to content

Latest commit

 

History

History

0x0D-preprocessor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

0x0D. C - Preprocessor

Resources:books:

Read or watch:


Learning Objectives:bulb:

What I learned 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

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

Author