what is the difference beyween a =10 and. a == 10
class 8
Answers
Answered by
2
Question:-
What is the difference between a=10 and a==10?
Answer:-
The main difference is that a=10 assigns 10 to variable a whereas a==10 checks whether the value of a is not or not and returns true if the value of a is 10 otherwise not.
a=10 >> Stores 10 in variable a.
a==10 >> Checks whether a is 10 or not.
Similar questions
Social Sciences,
3 months ago
Hindi,
3 months ago
Math,
3 months ago
Hindi,
7 months ago
Computer Science,
7 months ago
English,
1 year ago
Math,
1 year ago