[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C programming



On Fri, 4 Aug 2000, Eric G . Miller wrote:

> I suggest going to comp.lang.c and checking the C FAQ. Specifically look
> for the inherent problem of putting the same variable on both sides of a
> relational operator: (x+y) > x

In this case, a little algebra shows that all you need to check is y > 0.
That's legal and defined.

Cheers,
Phil Mendelsohn

-- 
Lottery:    a tax on people who are bad at math



Reply to: