Defining Macros with Parameters Flashcards

1
Q

How do you define a macro with a parameter?

A

define macro_name(parameter list) macro body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Macro Expansion

A

Process of replacing a macro call by its meaning

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why is important to use parenthesis in the macro body?

A

To prevent order of operation errors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly