vault backup: 2024-11-10 21:21:06
This commit is contained in:
parent
5fee60ba7b
commit
b502602382
@ -40,3 +40,12 @@ When `DEBUG` is defined, any instances of the `PRINT_DEBUG` token are replaced w
|
|||||||
> (d). Is it necessary for the `DEBUG` macro to be defined *before* `debug.h` is included in order for `PRINT_DEBUG` to have the desired effect? Justify your answer.
|
> (d). Is it necessary for the `DEBUG` macro to be defined *before* `debug.h` is included in order for `PRINT_DEBUG` to have the desired effect? Justify your answer.
|
||||||
|
|
||||||
Macro invocations are evaluated sequentially, and so if `DEBUG` was defined after `PRINT_DEBUG`, then any usages of `PRINT_EVALUATION` would be have like `DEBUG` was not defined.
|
Macro invocations are evaluated sequentially, and so if `DEBUG` was defined after `PRINT_DEBUG`, then any usages of `PRINT_EVALUATION` would be have like `DEBUG` was not defined.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> **5.** Suppose that a program consists of three source files - `main.c`, `f1.c`, and `f2.c`- Plus two header files, `f1.h` and `f2.h`. All three source files include `f1.h` but only `f1.c` and `f2.c` include `f2.h`. Write a makefile for this program, assuming that the compiler is `gcc` and that the executable file is to be named `demo`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> **6.** The following questions refer to the program described in Exercise 5.
|
||||||
|
> (a). Wh
|
||||||
|
Loading…
Reference in New Issue
Block a user