What is the meaning of 5 = 5 in relational operator?
Answers
Answered by
0
I will explain the difference between = and==.
- The equal sign, = is called an assignment operator. It is used to assign a value to a variable. For example, x=5; This means that value 5 is assigned or stored in the variable x.
- The sign, == is called equality operator. It is used to compare two values, ie., to check if those two values are equal or not. For example, if a=4 and b=5, (a==b) will give the output as false since 4 is not equal to 5. If suppose that the value of b=4. Then, a==b will return true.
Similar questions
Physics,
5 months ago
Social Sciences,
5 months ago
English,
5 months ago
Math,
1 year ago
Math,
1 year ago