Defining Macros with Parameters Flashcards Preview

CSCI 220 > Defining Macros with Parameters > Flashcards

Flashcards in Defining Macros with Parameters Deck (4):
1

How do you define a macro with a parameter?

#define macro_name(parameter list) macro body

2

Macro Expansion

Process of replacing a macro call by its meaning

3

Why is important to use parenthesis in the macro body?

To prevent order of operation errors.

4

How do you extend a macro over two or more lines?

By placing a \ at the end of each line except for the last.