C union problems (or is a pointer a pointer?)

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Apr 27 22:52:37 AEST 1989


In article <2700 at tekcae.CAX.TEK.COM> kurtk at tekcae.CAX.TEK.COM (Kurt Krueger) writes:
>Casting a pointer is really a NOP

No!  This is a common misconception.  Pointer casting can involve change
in representation, and when converting between pointer to char and
pointers to wider types it often does.



More information about the Comp.lang.c mailing list