0

what is the difference between x == 6 & x = 6

2nd Feb 2017, 8:38 AM
Llewellyn Kay
Llewellyn Kay - avatar
3 Antworten
+ 9
The former evaluates that both sides are equal. The latter assigns 6 to x.
2nd Feb 2017, 8:43 AM
Hatsy Rei
Hatsy Rei - avatar
0
the both are the same but "=="say than "x" is typically egal to 6.while "="say that "x" receive 6
2nd Feb 2017, 9:54 AM
nicaise koffi
nicaise koffi - avatar
0
x==6 means 6 is comapred with variable x.x=6 means 6 value is assigned to x variable.
2nd Feb 2017, 9:56 AM
DEBI PRASAD RATHA
DEBI PRASAD RATHA - avatar