CSE321Week6 - same type • int*x x points to an integer...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 321 Panya Chanawangsa [email protected]
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Today’s Agenda Basic pointer concepts Pointer declaration Reference/Dereference Operators Function pointers Pointer vs. Array malloc, calloc, realloc
Image of page 2
Computer Memory Think of computer memory as cells Each cell stores one byte Use a variable to store data to eliminate the need to know the exact memory location Use sizeof() to determine the number of bytes a data type occupires
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon