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

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

View File

@ -6,4 +6,19 @@ 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. // 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 = `
b. `i = 2; j = 1;`
```c
printf("%d", !!i + !j);
// Expected output: `1`, because !!2 evaluates to 1, and !j evaluates to 0
```
c. `i = 5; j = 0; k = -5;`
```c
printf("%d", i && j || k);
// Expected output: `1`, because i && j should evaluate to false,
```
d. ``