Computer Science, asked by nityamehra2008nm, 6 months ago

what is the difference beyween a =10 and. a == 10




class 8​

Answers

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