I'm new to learning about low level constructs and have a simple question about how they work.
My understanding is that if I have a piece of code
int* arr = new int[100000000];
this will be a section of memory allocated on the heap of main memory.
Let's say I then have to code process the array (e.g. find minimum value).
Does the CPU fetch the 100000000 values from main memory when it needs to process each one (e.g. for comparison <)?
A diagram would help :)