is (int (*)())NULL legal when NULL is (void *)0?

Doug Gwyn gwyn at smoke.brl.mil
Fri Nov 16 08:32:07 AEST 1990


In article <1990Nov15.204858.20696 at Think.COM> barmar at think.com (Barry Margolin) writes:
>I thought that the semantics of casting were equivalent to that of
>assignment to an object of the given type.

Nope, conversion and assignment have different rules.



More information about the Comp.lang.c mailing list