第二次作业(2)

#include<stdio.h>
int main()
{
    int i;
    long m;
    float f;
    double d;


    printf("sizeof(int)=%d,sizeof(i)=%d,&i=%x\n",sizeof(int),sizeof(i),&i);
    printf("sizeof(long)=%d,sizeof(m)=%d,&m=%x\n",sizeof(long),sizeof(m),&m);
    printf("sizeof(float)=%d,sizeof(f)=%d,&f=%x\n",sizeof(float),sizeof(f),&f);
    printf("sizeof(double)=%d,sizeof(d)=%d,&d=%x\n",sizeof(double),sizeof(d),&d);
}

 

posted on 2013-09-30 09:12  yy99  阅读(184)  评论(1编辑  收藏  举报