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