CV-qualifiers 修饰的是数组的元素 而不是数组本身。
c99标准如下:
If the specification of an array type includes any type qualifiers, the element type is soqualified,
not the array type.
[Quote=引用 3 楼 的回复:]
CV-qualifiers 修饰的是数组的元素 而不是数组本身。
c99标准如下:
If the specification of an array type includes any type qualifiers, the element type is soqualified,
not the array type.
c++标准如下:
A compound type (3.9.……
[/Quote]
授之以鱼不如授之以渔,
大神们这些标准在哪找的
CV-qualifiers 修饰的是数组的元素 而不是数组本身。
c99标准如下:
If the specification of an array type includes any type qualifiers, the element type is soqualified,
not the array type.
c++标准如下:
A compound type (3.9.2) is not cv-qualified by the cv-qualifiers (if any) of the types from which it is compounded.Any cv-qualifiers applied to an array type affect the array element type, not the array type