[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Converting Pointers to Types of the Same Size

The C compiler allows the conversion of pointer types to integral data types of the same size in global initializations. Since this type of conversion doesn't conform to the ANSI C standard, it is only available if the ANSI Strict option is off in the C/C++ Language settings panel. See "ANSI Strict" for more information on this option.
Converting a pointer to a same-sized integral type:
char c;
long arr = (long)&c; // accepted (not ANSI/ISO C)
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000