347 B
347 B
- The following program fragments illustrate the logical operators. Show the output produced by each, assuming that
i
,j
, andk
areint
variables.
a. i = 10; j = 5;
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 =