difference between = and = =
Answers
Answered by
2
Hey!
1. = is used to assign a value to a variable whereas == is used to check where two operands are equal or not.
2. = uses one operand while == uses two operands.
Hope it helps^^
1. = is used to assign a value to a variable whereas == is used to check where two operands are equal or not.
2. = uses one operand while == uses two operands.
Hope it helps^^
Answered by
1
Difference between == and= is:
==
>It is a relational operator
>It compares the two operands and return a boolean value true or false
>Eg. x==7. (It checks whether the value of x is 7 or not)
=
>It is an assignment operator
>It assigns the value on right side to the left operand
>Eg. x=7 (The value of x becomes 7)
☺☺☺Hope it helps you
==
>It is a relational operator
>It compares the two operands and return a boolean value true or false
>Eg. x==7. (It checks whether the value of x is 7 or not)
=
>It is an assignment operator
>It assigns the value on right side to the left operand
>Eg. x=7 (The value of x becomes 7)
☺☺☺Hope it helps you
Similar questions