Lesson 20 of 23
Pointers and Arrays
10 min 35 XP
An array's name is the address of its first element, so a[i] is the same as *(a + i). p++ moves to the next element (4 bytes ahead for an int).
Example: edit me and press Run
Output Loading C (first time takes a few seconds)
Press Run to see the result here.