0
What does '==' do?
5 Respostas
+ 1
Well in real world, we compare LHS and RHS with an equal (=) sign. In programming languages, to compare what's on left and right, double equals to (==) sign is used.
Example:
if (2==3)
result: false
While single equal sign is an assignment operator, which assigns the right side value into variable on the left side.
Example:
b = 11
a = b
now the value of a is b, that is 11.
+ 1
It checks if the two values are the same.
+ 1
thank you
0
thanks alot