河南成教 / 面向对象程序设计
12[分析题]
#include<iostream.h> void main() { cout<<sizeof(bool)<<’ ’<<sizeof(char)<<’ ’; cout<<sizeof(short)<<’ ’<<sizeof(int)<<’ ’; cout<<sizeof(long)<<’ ’<<sizeof(float)<<’ ’; cout<<sizeof(double)<<’ ’<<sizeof(long double)<<’ ’; cout<<sizeof(int *)<<’ ’<<sizeof(double *)<<’ ’; }
12[分析题]
#include<iostream.h> void main() { cout<<sizeof(bool)<<’ ’<<sizeof(char)<<’ ’; cout<<sizeof(short)<<’ ’<<sizeof(int)<<’ ’; cout<<sizeof(long)<<’ ’<<sizeof(float)<<’ ’; cout<<sizeof(double)<<’ ’<<sizeof(long double)<<’ ’; cout<<sizeof(int *)<<’ ’<<sizeof(double *)<<’ ’; }
参考答案:
佳题速递: