foo = *((bar *)stuff)

Sven Sciz Axelsson d83_sven_a at tekno.chalmers.se
Sun Apr 23 17:07:06 AEST 1989


Am I really out of line, or is this a true-to-God bug in the final release
of MPW C 3.0?? Isn't this code supposed to assign the integer value contained
at memory position 10 to the variable x?

	x = *((int *)10);

In MPW C 3.0 this generates exactly the same code as would x = 10.
Am I right or am I right?

	Sven Axelsson		d83_sven_a at tekno.chalmers.se



More information about the Comp.lang.c mailing list