jgs CSE 240 Introduction to Programming Languages Lecture 10: Arrays and Pointers Dr. Javier Gonzalez-Sanchez [email protected] javiergs.engineering.asu.edu | javiergs.com PERALTA 230U Office Hours: By appointment
Javier Gonzalez-Sanchez | CSE240 | Fall 2021 | 3 jgs Arrays are Pointers § An array is a pointer to a set of consecutive elements a[0] is the same that *(a+0) a[1] is the same that *(a+1) a[2] is the same that *(a+2) a[3] is the same that *(a+3) etc. int a [6]; 0x48 a 0x44 0x48
jgs CSE 240 Introduction to Programming Languages Javier Gonzalez-Sanchez, Ph.D. [email protected] Fall 2021 Copyright. These slides can only be used as study material for the class CSE240 at Arizona State University. They cannot be distributed or used for another purpose.