Re:Using signed or unsigned int by default in C (2015)
by pkhuong on Tuesday August 23, 2022 @02:52PM
(#32569470)
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-tha...