What would be size of int a[4];
integer take 4 byte in my machine so each element take 4 byte to store data. This array can store five element a[0] a[1] a[2] a[3] a[4]Code:#include<stdio.h>int main ()
{
int a[4];
int n = sizeof(a);
printf (" Size of array %d ", n);
return 0;
}
I think the size of array should be 4 *5 = 20 bytes but program show size of array is 16 bytes
What would be size of int a[4];