DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
ANSI implementation-defined behavior

Arrays and pointers

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.

Largest array size

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.

Casting pointers

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.

Pointer subtraction

The difference between two pointers to members of the same array is held in ptrdiff_t, a signed int.


Next topic: Registers
Previous topic: Floating point

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003