I just wanted to add, that the confusion is probably because the programming language looks a bit like some mathematics as the same symbols are used. But it has a different meaning.
For example, the = sign. In mathematics, we could write
x = x/2 + 3
That's an equation, we can solve it and get the result, x = 6.
But in C OR C++, the = sign means assignment of a value, x = x/2 +3 ;
after execution, the value of x will depend on its previous value, and will change every time it is executed
OK, so I got off topic here. But my point is, don't mix up the meaning of symbols in mathematics with their meaning when programming.