When it is amoral... (Re: When is a cast not a cast?)

Stacey Campbell stacey at hcr.UUCP
Wed May 10 05:37:14 AEST 1989


In article <4093 at ficc.uu.net> peter at ficc.UUCP writes:
>In article <563 at lzaz.ATT.COM>, hutch at lzaz.ATT.COM (R.HUTCHISON) writes:
>> 	midpoint_pointer = (start_pointer + end_pointer) / 2;
>
>You're right. It's a valid operation.
>
>(what's the average of the 7 clubs and the 9 clubs?)

Que?

On a segmented architecture p1 + p2 blows up badly.

How about;

	mid = start + (end - start) / 2;
-- 
Stacey Campbell, HCR Corporation, {lsuc,utzoo,utcsri}!hcr!stacey



More information about the Comp.lang.c mailing list