Lvalues and casts
Henry Spencer
henry at utzoo.uucp
Wed May 24 08:58:18 AEST 1989
In article <847 at tub.UUCP> net at tub.UUCP (Oliver Laumann) writes:
> (int *)cp = ip;
>
>The PCC, however, says "illegal lvalue in assignment". Is this legal
>C, i.e. is the result of a cast really an lvalue?
No. Many compilers have accepted it, historically, but it has never
been legal C and it is not legal ANSI C.
--
Van Allen, adj: pertaining to | Henry Spencer at U of Toronto Zoology
deadly hazards to spaceflight. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list