| char szBuffer[128];
char *lpBuffer;
lpBuffer = szBuffer;
struct MY_STRUCT {
int a;
int b;
char c[12];
} ms;
printf( "%d\n", sizeof( char ) );
printf( "%d\n", sizeof( int ) );
printf( "%d\n", sizeof( long ) );
printf( "%d\n", sizeof( float ) );
printf( "%d\n", sizeof( double ) );
printf( "%d\n", sizeof( char * ) );
printf( "%d\n", sizeof( int * ) );
printf( "%d\n", sizeof( long * ) );
printf( "%d\n", sizeof( float * ) );
printf( "%d\n", sizeof( double * ) );
printf( "%d\n", sizeof( szBuffer ) );
printf( "%d\n", sizeof( lpBuffer ) );
printf( "%d\n", sizeof( MY_STRUCT ) );
printf( "%d\n", sizeof( ms ) );
------------------------------------------------
1
4
4
4
8
4
4
4
4
4
128
4
20
20
| |