Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!ulysses!allegra!mit-eddie!ll-xn!ames!sdcsvax!ucsdhub!hp-sdd!hplabs!hpcea!hpfcdc!boemker From: boemker@hpfcdc.UUCP Newsgroups: comp.lang.c Subject: Re: Question about type casting Message-ID: <5080012@hpfcdc.HP.COM> Date: 14 Jan 88 22:29:21 GMT References: <546@xyzzy.UUCP> Organization: HP Ft. Collins, Co. Lines: 19 Posted: Thu Jan 14 17:29:21 1988 > I believe that Standard C does not allow type casting on the left of the > = sign. How about this: int i; char *c; c = (char *) &i; * (int *) c = 0; Are you saying that Standard C doesn't allow c to be recast in that assignment? > I have also discovered that SUN and APOLLO C allow this while most other C > compilers do not???! So the Sun accepts constructions like ((int [1]) i) [0] = 0; ? Does it work?