
10 Sep
2006
10 Sep
'06
8:57 a.m.
Eric Fowler wrote:
...
////////This 'if' is skipped, the code acts like nChk > nTopWgt is always TRUE, even when it ain't!! if(nChk > nTopWgt);
Well, of course it acts like its always true -- the if condition is followed by an empty statement. Any decent compiler would optimize this out. Moshe