- 论坛徽章:
- 0
|
不得不说,这样的实参很拙劣。
ISO/IEC 9899:201x
6.3.2.3 Pointers
7 A pointer to an object type may be converted to a pointer to a different object type. If the
resulting pointer is not correctly aligned6 for the referenced type, the behavior is
undefined. Otherwise, when converted back again, the result shall compare equal to the
original pointer. When a pointer to an object is converted to a pointer to a character type,
the result points to the lowest addressed byte of the object. Successive increments of the
result, up to the size of the object, yield pointers to the remaining bytes of the object. |
|