From dbaa4a5538920b5bc1857b92e8f489c56b2bdb9b Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Tue, 23 Jan 2024 19:23:12 -0500 Subject: [PATCH] notes on terminal, and pointer arithmetic --- labs/03_debugging/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/labs/03_debugging/README.md b/labs/03_debugging/README.md index 002eaad..250d74b 100644 --- a/labs/03_debugging/README.md +++ b/labs/03_debugging/README.md @@ -1,8 +1,12 @@ # Lab 3 — Memory Diagrams, Testing, and Debugging +For this lab, you must use a termial. Do not use IDEs for this lab. + ## Checkpoint 1 *estimate: 20-40 minutes* +Read lecture notes [5.7](../../lectures/05_pointers#57-arrays) and [5.8](../../lectures/05_pointers#58-stepping-through-arrays-with-pointers-array-iterators), and try to understand the example code and run the animations. Ask questions if you don't understand the code. + Write a function compute_squares that takes 3 arguments: two C-style arrays (not STL vectors), a and b, of unsigned integers, and an unsigned integer, n, representing the size of each of the arrays. The function should square each element in the first array, a, and write each result into the corresponding slot in the second