小宝的实验二。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 @ 2013-09-30 09:32  xiaobao123  阅读(91)  评论(0编辑  收藏  举报