Differentite between = and == operators
Answers
Answered by
3
So it's cleared now, ,both are not same, = is an Assignment Operator it is used to assign the value of variable or expression, while == is an Equal to Operator and it is a relation operator used for comparison (to compare value of both left and right side operands).
Answered by
0
in computer language
initialise the value by = operator
a=3
it means the value stored in a is 3
==
compare the two value using comparative operator
generally used to check the value
eg
while(a=<4&&a==2)
Similar questions