/**//************************************************************ Copyright (C), 1998-2006, Rx. Co., Ltd. FileName: example.cpp Author: longronglin Version : 1.0 Date: 2006-10-05 Description: Function List: 1. int main() History: <author> <time> <version > <desc> longronglin 2006/10/05 1.0 modify xxx . ***********************************************************/ #include "stdio.h" /**//* * 返回1为正确执行 */ int main() ...{ int i; short j; long k; float m; double n; char a; signed shortint b; signed longint c; unsigned shortint d; unsigned longint e; unsigned char f; signed char g; signed longint h; unsigned longint l; printf("the length of basic type "); printf("the byte of int = %d ",sizeof(i)); printf("the byte of short = %d ",sizeof(j)); printf("the byte of long = %d ",sizeof(k)); printf("the byte of float = %d ",sizeof(m)); printf("the byte of double = %d ",sizeof(n)); printf("the byte of char = %d ",sizeof(a)); printf("the byte of signed short int = %d ",sizeof(b)); printf("the byte of signed long int = %d ",sizeof(c)); printf("the byte of unsigned short int = %d ",sizeof(d)); printf("the byte of unsigned long int = %d ",sizeof(e)); printf("the byte of unsigned char = %d ",sizeof(f)); printf("the byte of signed char = %d ",sizeof(g)); printf("the byte of signed long int = %d ",sizeof(h)); printf("the byte of unsigned long int = %d ",sizeof(l)); return (1); }