vault backup: 2024-11-05 11:38:30
This commit is contained in:
parent
a8819068c3
commit
5c37c59fa8
@ -14,3 +14,26 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
> **13.** Show what the following program will look like after preprocessing. You may ignore any lines added to the program as a result of including the `<stdio.h>` header.
|
> **13.** Show what the following program will look like after preprocessing. You may ignore any lines added to the program as a result of including the `<stdio.h>` header.
|
||||||
|
|
||||||
|
```c
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
f();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void f(void) {
|
||||||
|
printf("N is %d\n", 100);
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> **15.** Suppose that a program needs to display messages in either English, French, or Spanish. Using conditional compilation, write a program fragment that displays one of the following three messages, depending on whether or not the specified macro is defined.
|
||||||
|
|
||||||
|
```c
|
||||||
|
|
||||||
|
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user