Will the code below preload an array of 100 locations with the
size - 100
const int mem = 10000;
int *p, memory[Size];
for ( p = &memory; p < &memory[Size]; *p++ )
*p++ = mem;
Please advise if there is a better way. It is an exercise that should use pointers.