15.8 Arrays and pointers

Describes implementation-defined aspects of the ARM C compiler and C library relating to arrays and pointers, as required by the ISO C standard.

The following statements apply to all pointers to objects in C and C++, except pointers to members:

  • Adjacent bytes have addresses that differ by one.

  • The macro NULL expands to the value 0.

  • Casting between integers and pointers results in no change of representation.

  • The compiler warns of casts between pointers to functions and pointers to data.

  • The type size_t is defined as unsigned int.

  • The type ptrdiff_t is defined as signed int.

Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.