0

What difference between "=" and "=="?

What difference between "=" and "=="?

15th Sep 2017, 4:30 PM
Igor Bondarenko
Igor Bondarenko - avatar
3 Answers
+ 3
= sets value to another value == checks if 2 values are equivalent Int A=3 Int B=5 A=B sets A to have the same value as B A==B checks if A is equivalent to B
15th Sep 2017, 4:37 PM
Chris
Chris - avatar
+ 3
= is the assignment operator. It assigns value of one value to other variable. == operator checks for equivalence between the two variables. Use =operator to assign values and ==operator to check for equality between two variables.
15th Sep 2017, 4:49 PM
Satyajit Sahoo
Satyajit Sahoo - avatar
+ 1
= means that something'll be equivalent some numbers or something else == means that something'll checked - equivalent or no other thing
2nd Nov 2017, 8:10 AM
ŠŠ½Š°Ń‚Š¾Š»ŠøŠ¹ ŠœŠ°Ń€Š“ŠµŠ½Š³ŃŠŗŠøŠ¹
ŠŠ½Š°Ń‚Š¾Š»ŠøŠ¹ ŠœŠ°Ń€Š“ŠµŠ½Š³ŃŠŗŠøŠ¹ - avatar