Computer Science, asked by vpyvpyadav12, 5 months ago

What is the difference between the following statements? A=10 and A==10​

Answers

Answered by shubhamyadavji59
8

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 nazif90
3

Answer:

There is no difference between it because

A=10 then A mean 10

A==10 then it mean A = (a number which is equal of 10)

the number only 10=10

so A==10 mean A=10

pls follow me

Similar questions