Does C or C++ guarantee array < array + SIZE?

Yes. From section 6.5.8 para 5.

If the expression P points to an element of an array object
and the expression Q points to the last element of the same array
object, the pointer expression Q+1 compares greater than P.

Expression array is P. The expression array + SIZE - 1 points to the last element of array, which is Q.
Thus:

array + SIZE = array + SIZE - 1 + 1 = Q + 1 > P = array

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)