Particleness
asked on
Logic problem
int k;
int m;
TRACE("%d ",!(iNewPlace>=(sLine.leng th()-1))); //outputs 1
TRACE("%d ",iNewPlace); //outputs 0
TRACE("%d ",sLine.length()-1); //outputs -1
TRACE("%d ",((iNewPlace>=(sLine.leng th()-1)))) ; //outputs 0
TRACE("%d ",((m=iNewPlace)>=(k=(sLin e.length() -1)))); //outputs 1
TRACE("%d ",0>=-1); //outputs 1
k=iNewPlace;
m=sLine.length()-1;
TRACE("%d ",k>=m); //outputs 1
Why is TRACE("%d ",((iNewPlace>=(sLine.leng th()-1)))) ; outputting false?
int m;
TRACE("%d ",!(iNewPlace>=(sLine.leng
TRACE("%d ",iNewPlace); //outputs 0
TRACE("%d ",sLine.length()-1); //outputs -1
TRACE("%d ",((iNewPlace>=(sLine.leng
TRACE("%d ",((m=iNewPlace)>=(k=(sLin
TRACE("%d ",0>=-1); //outputs 1
k=iNewPlace;
m=sLine.length()-1;
TRACE("%d ",k>=m); //outputs 1
Why is TRACE("%d ",((iNewPlace>=(sLine.leng
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER