I want to allocate 512 B of memory for each partition. I have done the following code, i am getting 520 B of memory. Why it is taking 8 B of memory extra? If anyone knows answer, let me know.
thanks in advanceCode:int *array1[4]; for(i=0;i<=1;i++) /*Memory Partitioning of 512B each*/ { array1[i] = (int *)malloc(128*sizeof(int)); printf("\npartition=%u\n",array1[i]); }