compiler should notice...

when I use the wrong operator...

if (fishyTasteInMouth = true) // accidentally used = instead of ==

Gabe

no...:slight_smile:

that's perfectly valid in C... maybe not desireable but valid :wink:

usually I tell my students to use
if (true == FishyTasteInMouth) ....

so if by mistake you use = the compiler will complain

massimo