Lesson 3: Some Helpful Pointers
Outline:
- Pointers, revisited
*
,&
- static vs. dynamic allocation
- example:
pointers.c
- Number representations
- bases: decimal, binary, hex
- conversions: binary to decimal/hex
- Syllabus Q&A
- Assignment 2: Queues
- code overview
- C strings and
char *
- advice
Reading assignment (to be completed by the next class):
- Assignment 2: Queues – read it and try to run the starter code on
mantis
! - If you haven’t already, take a look at The 5-Minute Guide to C Pointers by Dennis Kubes. There will be parts you won’t understand now, but you should parse out what you can, and we’ll return to the rest in the next few weeks.
- Dive into Systems Sec. 2.7 - Structs