contiguous array storage
#include <stdio.h>
#define iDAYS 7
int main()
{
int index, iarray[iDAYS];
printf("sizeof(int) is %d\n\n", (int)sizeof(int));
for(index = 0; index < iDAYS; index++)
printf("&iarray[%d] = %X\n", index,
&iarray[index]);
return(0);
}
Related examples in the same category