ILE C/C++ Programmer's Guide

C/C++ Pointer Conversions

IBM C and C++ compilers convert pointers with attribute __ptr128 to a pointer with attribute __ptr64 (and vice versa) as needed, based on function and variable declarations.

Consider the following:

The ILE compilers automatically insert pointer conversions to match pointer lengths. In the case of multiple level pointers, the conversion is performed only on the first level of the pointer. For example, conversions are inserted whenever:

Note:
You can specify explicit pointer conversions. See Casting Pointers.

When casting pointers in a teraspace environment, consider the following:


[ Top of Page | Previous Page | Next Page | Table of Contents ]