Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!nntp-server.caltech.edu!suncub.bbso.caltech.edu!EYCHANER From: eychaner@suncub.bbso.caltech.edu (Amateurgrammer) Newsgroups: comp.lang.c Subject: A quick question... Message-ID: <1991Mar12.030759.26698@nntp-server.caltech.edu> Date: 12 Mar 91 03:07:59 GMT Sender: news@nntp-server.caltech.edu Reply-To: eychaner@suncub.bbso.caltech.edu Organization: Big Bear Solar Observatory, Caltech Lines: 15 Just a quick question...I personally still don't quite understand what is and is not legal on the left side of an assignment. Is this legal... unsigned char *pointer1; short short_value; ... *((short *) pointer1) = short_value; ... And does it do what I think it does, that is, assign short_value to the storage pointed to by pointer1? I hope you understand what I mean... -Glenn ****************************************************************************** Glenn Eychaner - Big Bear Solar Observatory - eychaner@suncub.bbso.caltech.edu "...this morning's unprecedented solar eclipse is no cause for alarm." -_Flash Gordon_