vault backup: 2024-09-18 11:12:12

This commit is contained in:
zleyyij 2024-09-18 11:12:12 -06:00
parent bf024cc4e6
commit ef0012eb8a

View File

@ -1,6 +1,9 @@
> 2. The following program fragments illustrate the logical operators. Show the output produced by each, assuming that `i`, `j`, and `k` are `int` variables.
a. `i = 10; j = 5;`
```
```c
printf("%d", !i < j);
```
// Expected output: `1`, because `!i` evaluates to 0, and 0 is less than 5, so that expression evaluates to true, or 1.
```
b. `i = 2; j = `