What is the definition of “array” in C?

后端 未结 1 1529
Happy的楠姐
Happy的楠姐 2020-12-10 23:40

The standard defines array type meticulously, but I don\'t see any definition for array.

We might say \"object of array type\", however that can\'t

相关标签:
1条回答
  • 2020-12-11 00:25

    Arrays are defined in the C Standard, 6.2.5, paragraph 20:

    An array type describes a contiguously allocated nonempty set of objects with a particular member object type, called the element type. Array types are characterized by their element type and by the number of elements in the array. An array type is said to be derived from its element type, and if its element type is T, the array type is sometimes called ‘‘array of T’’. The construction of an array type from an element type is called ‘‘array type derivation’’.

    0 讨论(0)
提交回复
热议问题