vault backup: 2024-09-18 11:32:12
This commit is contained in:
parent
2f350ffaac
commit
e31c8eaaae
@ -31,5 +31,12 @@ printf("%d", i < j || k);
|
|||||||
> 4. Write a single expression whose value is either `-1`, `0`, or `1` depending on whether `i` is less than, equal to, or greater than `j`, respectively.
|
> 4. Write a single expression whose value is either `-1`, `0`, or `1` depending on whether `i` is less than, equal to, or greater than `j`, respectively.
|
||||||
|
|
||||||
```c
|
```c
|
||||||
(i )
|
/*
|
||||||
```
|
If i < j, the output should be -1.
|
||||||
|
If i == j, the output should be zero
|
||||||
|
If i > j, the output should be 1.
|
||||||
|
*/
|
||||||
|
(i > j) - (i < j)
|
||||||
|
```
|
||||||
|
|
||||||
|
> 6. Is the following `if` statement lega
|
Loading…
Reference in New Issue
Block a user