|
|
This section describes the implementation-defined characteristics of arrays and pointers. It corresponds to section ``F.3.7 Arrays and Pointers'' in the ANSI document.
The type of integer required to hold the maximum size of an array, that is, the type of the sizeof operator, size_t, is an unsigned int.
The effect of casting a pointer to an integer or vice versa depends on the type of int. When casting any pointer into a long int or an int and back, no information is lost. However, when casting any pointer to type char or short and back, the original pointer will not be restored.
The difference between two pointers to members of the same array is held in ptrdiff_t, a signed int.