Computer Science, asked by hiramani4708, 11 months ago

What is the meaning of 5 = 5 in relational operator?

Answers

Answered by varadhabala29
0

I will explain the difference between = and==.

  1. 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.
  2. 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