// the relationship between addresses // and elements of arrays of different type #include void main(void) { // declare three arrays and a counter variable int iCount[10], iInteg; float f[10]; double d[10]; // print the table heading printf("\nElem iCount[iInteg] addr f[iInteg] addr d[iInteg] addr"); printf("\n|================================"); printf("======================|"); // print the addresses of each array element for(iInteg=0; iInteg<10; iInteg++) printf("\nElement %d:\t%p\t%p\t%p",iInteg,&iCount[iInteg],&f[iInteg],&d[iInteg]); printf("\n|================================"); printf("======================|\n"); printf("\nLegends:"); printf("\nElem- element, addr - address\n"); printf("\ndifferent pc, shows different addresses\n"); }