4 ms·
This all makes sense at first sight, but remember that we can always take the difference between the address of an array's first element and one past the end, s
by pkhuong 4y ago
This all makes sense at first sight, but remember that we can always take the difference between the address of an array's first element and one past the end, so you run into a lot of issues when an array (or any object) is larger than PTRDIFF_MAX bytes.
https://trust-in-soft.com/blog/2016/05/20/objects-larger-than-ptrdiff_max-bytes/ https://trust-in-soft.com/blog/2016/05/20/objects-larger-tha...