What is the difference between the statements a=5 and a==5
Answers
Answered by
1
Answer:
= operator assigns the value of right operand to left operand. While == compares them, it will return 1 if they are equal and 0 if they are unequal. Generally we use equality operator in if else conditions.
Explanation:
I think it is helpful so don't forget to follow mee
Similar questions