Previous Lecture | lect10 Slides | Next Lecture |
Topics
Code from lecture
https://github.com/ucsb-cs16-f18-mirza/cs16-f18-lectures/tree/master/lec-10
Pointers and structs
- Defining your own data types using structs
- Different ways of accessing member variables of a structs (use of . vs ->)
- Pointers to structs, why and when to use them?
- Passing structs to functions by value, by reference and by address