A quick question...
Amateurgrammer
eychaner at suncub.bbso.caltech.edu
Tue Mar 12 13:07:59 AEST 1991
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 at suncub.bbso.caltech.edu
"...this morning's unprecedented solar eclipse is no cause for alarm."
-_Flash Gordon_
More information about the Comp.lang.c
mailing list