Computer Science, asked by oombmyre, 7 months ago

What is the difference between the statements a=5 and a==5​

Answers

Answered by anishaverma5591
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