c demo2

#include<stdio.h>
#include<stdlib.h>
int main()
{
                char a[3]={'1','2','3'};
                int b[3]={1,2,3};
                float c[3]={1.1,2.1,3.1};
                long d[3]={1,2,3};
                printf("char     : sizeof is %d\n",sizeof(a));
                printf("integer: sizeof is %d\n",sizeof(b));
                printf("float    : sizeof is %d\n",sizeof(c));
                printf("long: sizeof is %d\n",sizeof(d));    
                return 0;    
}

你可能感兴趣的:(include,2,1)