no difference, it is an old habit to avoid if(a=5) in c/c++.
These questions/answers are about the same:
- (0 == variable) or (null == obj): An outdated practice in C#?
- Checking for null, which is better? "null ==" or "==null"
- Why does one often see "null != variable" instead of "variable != null" in C#?