int main() { char*a1 ="DFDFDF"; char a2[]="sdfdfsf"; char a3[100]="DFD"; int* a13; int a4[]={2, 3}; int a5[100]; void*a6; void*a7 =(void*)malloc(100); void*a8 =(char*)malloc(100); char*a9 =(char*)malloc(30); char*a10 =(char*)malloc(30);
struct a11{ short s1; short s2; short s3; int s4; }; struct a12 { short s1; long s3; };
printf("SIZE OF A1:%d\n",sizeof(a1)); printf("SIZE OF A2:%d\n",sizeof(a2)); printf("SIZE OF A3:%d\n",sizeof(a3)); printf("SIZE OF A4:%d\n",sizeof(a4)); printf("SIZE OF A5:%d\n",sizeof(a5)); printf("SIZE OF A6:%d\n",sizeof(a6)); printf("SIZE OF A7:%d\n",sizeof(a7)); printf("SIZE OF A8:%d\n",sizeof(a8)); printf("SIZE OF A9:%d\n",sizeof(a9)); printf("SIZE OF A10:%d\n",sizeof(a10)); printf("SIZE OF A11:%d\n",sizeof(a11)); printf("SIZE OF A12:%d\n",sizeof(a12)); printf("SIZE OF A13:%d\n",sizeof(a13));