(==)
and assignment operator (=)
are two completely different operators.(==)
is an equality relational operator that evaluates two expressions to see if they are equal and returns true if they are equal and false if they are not.(=)
is used to assign a value to a variable. Hence, we can have a complex assignment operation inside the equality relational operator for evaluation.