Possible Duplicate:
What is the difference between these (bCondition == NULL) and (NULL==bCondition)?
From this question it says “const object on left side of comparison” is some how “better” than doing otherwise. Why is this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Any decent compiler will warn you about assignment within a conditional expression, so that form isn’t very relevant these days.
Use
unsignedwhen the value should beunsigned.