Arrays and Pointers
摘要
Arrays, multiple contiguous objects of the same type in memory, are a fundamental data structure in any language. C provides basic arrays. Pointers, objects that contains the memory address of some other object, are fundamental to how computers work in general. C provides direct access to pointers. Unlike most other programming languages, C has a curious relationship between arrays and pointers. This chapter covers arrays, pointers, their relationship, pointers to pointers, pointers to function, multidimensional arrays, compound literals, and variable length arrays.