From ef0012eb8a5d01ec311a82fc7dc6604a4bc13269 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:12:12 -0600 Subject: [PATCH] vault backup: 2024-09-18 11:12:12 --- education/software development/ECE1400/Chapter.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/education/software development/ECE1400/Chapter.md b/education/software development/ECE1400/Chapter.md index e27bb8f..55533a7 100644 --- a/education/software development/ECE1400/Chapter.md +++ b/education/software development/ECE1400/Chapter.md @@ -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); -``` \ No newline at end of file + +// 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 = ` \ No newline at end of file