Why or what does the exclamation mark in: if (!IsIsogram(Guess)) do?

Denies the expression: Changes true to false, or false to true. So, for example, if isIsogram(Guess) returns true, (!isIsogram(Gues)) is false.

HI Munsa, Thanks, just to be clear, is forces the alternate result, 0 to 1 or 1 to 0 (false to true or true to false).

Yes, it negates the value.

Thanks, DanM.

  • ==
  • !=

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.