News for hackers. Stuff that matters.

miket94

Re:Pointers Are Complicated, or What’s in a Byte? on Wednesday July 25, 2018 @01:47PM (#17611218)
auto x = new int[8]; auto y = new int[8]; However, given how low-level a language C++ is, we can actually break this assumption by setting i to y-x. Since &x[i] is the same as x+i, this means we are actually writing 23 to &y[0].

This assumes that the address space of y starts at the end of the address space of x? In other words x+8==y? Could these two allocated blocks of memory ever not be continuous?