First, it assigns the value B A ( A = B ), then checks whether the result of this assignment is equal to A and has a value of 1 equal to 1 .
So, technically you are right: along the way, it checks A for 1 .
To simplify reading, the code is equivalent to:
UINT A, B = 1; A = B; if(A == 1){ return(TRUE); } else { return(FALSE); }
Ferdinand beyer
source share