The code uses assignment operator (=) instead of equality comparison operator (==). In C, the expression if (x = 100) assigns 100 to x and the condition always evaluates to true (non-zero), whereas if (x == 100) properly compares x with 100. This is a common programming error.