2_5.cpp
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
- #include <iostream.h>
- void main()
- {
- cout <<"size of char " <<sizeof(char) <<" byten"
- <<"size of unsigned char " <<sizeof(unsigned char) <<" byten"
- <<"size of signed char " <<sizeof(signed char) <<" byten"
- <<"size of int " <<sizeof(int) <<" byten"
- <<"size of unsigned " <<sizeof(unsigned) <<" byten"
- <<"size of signed " <<sizeof(signed) <<" byten"
- <<"size of short " <<sizeof(short) <<" byten"
- <<"size of unsigned short " <<sizeof(unsigned short) <<" byten"
- <<"size of long " <<sizeof(long) <<" byten"
- <<"size of signed long " <<sizeof(signed long) <<" byten"
- <<"size of unsigned long " <<sizeof(unsigned long) <<" byten"
- <<"size of float " <<sizeof(float) <<" byten"
- <<"size of double " <<sizeof(double) <<" byten"
- <<"size of long double " <<sizeof(long double) <<" byten";
- }