25. How Are Arrays and Pointers Different?

They’re the Same Thing in C

image

This chapter teaches how C’s array and pointer variables share a lot of principles. As a matter of fact, an array is a special kind of pointer. Because of their similarities, you can use pointer notation to get to array values, and you can use array notation to get to pointed-at values.

Perhaps the most important reason to learn how ...

Get Absolute Beginner’s Guide to C, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.