Computer Science, asked by kaviprasadh, 3 months ago

different between a=10 ,a==10 (coding)​

Answers

Answered by snehhaswami5
1

Answer:

a=10: assign the value, a==10 compare the value

Explanation:

a=10' is used to assign the value of 10 in 'a' variable whereas 'a==10' compare the value of 'a' variable with 10. Explanation: In "a=10", a is a variable that is initialized by 10 value because in any programming language "=" stands for assignment operator which is used to assign the value for any variable.

Answered by Oreki
2

a = 10, means assigning 10 to variable a, = is Assignment operator.

a == 10, means checking if a equals 10 or not, == is Equality operator.

Similar questions