- 1
what is the meaning of "==" this sign
4 Réponses
+ 1
This operator tests if the two operands are equals and return true (1) if they are, false (0) if they aren't.
+ 1
== is used to check if LHS and RHS are equal, and it differs from = as"=" is used to assign a value to a variable.
+ 1
If you are comparing two values you would use == and if you want to assign values you use =. An example would be:
x=2+2 //assignment
if(a==b)
{ do something}
0
Equal to