CSC209 Tutorial Three
Arrays and pointers continued, dynamic memory, command line arguments, valgrind
Slides created by Daniel Laufer and Meghan Torchia
Valgrind
2
Valgrind Example
3
Output from running valgrind --leak-check=yes -v ./a.out
“a.out” is just the name of the executable in this example
Additional Questions
CSC209 2017 Final Exam Question 2a
CSC209 2017 Final Exam Question 2d
CSC209 2017 Final Exam Question 2e
CSC209 2017 Final Exam Question 2f
Let’s work on some questions
Lab code can be found in the ‘lab code’ link under week 3’s content on the course website.
Anonymous Feedback/suggestion
Form
10
Thanks for coming!