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

This commit is contained in:
zleyyij 2024-09-18 11:37:12 -06:00
parent e31c8eaaae
commit e1d0e5756f

View File

@ -39,4 +39,10 @@ printf("%d", i < j || k);
(i > j) - (i < j) (i > j) - (i < j)
``` ```
> 6. Is the following `if` statement lega > 6. Is the following `if` statement legal?
```c
if (n >= 1 <= 10)
printf("n is between 1 and 10\n");
```
Yes the statement is *legal*, but it does not produce the intended effect. It would produce an output when `n` is zero because `0 >= 1` would evaluate to `0`, and `0 <= 10` is false.