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