when I use the wrong operator...
if (fishyTasteInMouth = true) // accidentally used = instead of ==
Gabe
when I use the wrong operator...
if (fishyTasteInMouth = true) // accidentally used = instead of ==
Gabe
no...
that's perfectly valid in C... maybe not desireable but valid
usually I tell my students to use
if (true == FishyTasteInMouth) ....
so if by mistake you use = the compiler will complain
massimo