sizeof a struc field

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Oct 7 04:48:46 AEST 1989


In article <7653 at cdis-1.uucp> tanner at cdis-1.uucp (Dr. T. Andrews) writes:
>I should be pleased to hear WHY (((type *)0)->anything) is disallowed
>in the context of compile-time expressions.

Because (type *)0 is SYNTACTICALLY a null pointer, and there is a
prohibition against using a null pointer as the left operand of ->.



More information about the Comp.lang.c mailing list