#if 0 +-----------------------------------------------------------------------------+ | Program: sizeof Jace A Mogill | | Release: 1.0 ROTANG UnderWare | | Date: $Date: 2004/01/24 03:43:09 $ http://www.rotang.com/ | | Revision: $Revision: 1.1.1.1 $ Email: mogill@rotang.com | | Copyright 1998-2000 ROTANG -- ZOOM! NOT BOOM! | +-----------------------------------------------------------------------------+ | You may redistribute this software only according to guidelines in the | | General Public License (GPL), see COPYING for details. | +-----------------------------------------------------------------------------+ #endif #include #define SIZEOF( _x_ ) printf( "sizeof( %s )=%d\n", #_x_, sizeof ( _x_ ) ) void main(){ SIZEOF( char * ); SIZEOF( char ); SIZEOF( short ); SIZEOF( int ); SIZEOF( long ); SIZEOF( long long ); SIZEOF( unsigned char ); SIZEOF( unsigned short ); SIZEOF( unsigned int ); SIZEOF( unsigned long ); SIZEOF( unsigned long long ); SIZEOF( float ); SIZEOF( double ); SIZEOF( long double ); }