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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Arrays and Pointers

  • Paul J. Lucas

摘要

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.