Previous Lecture | Lecture 7 | Next Lecture |
Lecture 7, Thu 07/18
Arrays
Lecture video
Stuff I wrote on the “whiteboard”
Go here and click on the appropriate date: https://1drv.ms/o/s!AlgIeD1urAgmgQU7loNfb3-LYrma
Code from lecture
https://github.com/ucsb-cs16-m19/code-from-class/tree/master/07-16
Topics
Memory
C++ arrays
- C/C++ arrays are like lists in Python and Arrays in Java. We will discuss the differences between these.
- Declaring and initializing arrays in C++
- Tracing code involving arrays
- Array pitfalls: out of bound array access