From 9994e1407c8552e7bcb8f783c28f4157cf1229bc Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Tue, 8 Oct 2024 22:01:51 -0600 Subject: [PATCH] vault backup: 2024-10-08 22:01:51 --- .../software development/ECE1400/Chapter 8 Exercises.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/education/software development/ECE1400/Chapter 8 Exercises.md b/education/software development/ECE1400/Chapter 8 Exercises.md index 97689bc..de8450a 100644 --- a/education/software development/ECE1400/Chapter 8 Exercises.md +++ b/education/software development/ECE1400/Chapter 8 Exercises.md @@ -18,6 +18,7 @@ const int segments[10][7] = {{1, 1, 1, 1, 1, 1, 0}, ...}; ``` > I've given you the first row of the initializer, fill in the rest. +Answer: ```c const int segments[10][7] = { {1, 1, 1, 1, 1, 1, 0}, // 0 @@ -36,4 +37,9 @@ const int segments[10][7] = { >10. Write a declaration for an 8x8 `char` array named `chess_board`. Include an initializer that puts the following data into the array, one character per array element: \[omitted] +```c +char ch +``` + + > 11. Write a program fragment that declares an 8x8 `char` array named `checker_board` and then uses a loop to store the following data into the array (one character per array element). \ No newline at end of file