Is range(ptrdiff_t) > range(size_t)?

Tommy Levitte pk-tle at nada.kth.se
Fri Jul 29 18:16:07 AEST 1988


> ....
>Is the following relationship always true?
>
>	sizeof(char a[]) == &a[sizeof(a)] - &a[0]

No! If you use any C on a PC system, this will never be true, due to the
segment:offset adress format.



More information about the Comp.lang.c mailing list