75.3k views
5 votes
The = operator and the == operator perform the same operation when used in a boolean expression.

1 Answer

0 votes
= is the assignment operator
== is the equality comparison operator

Doesn't change for a boolean expression in C derived languages.