jeudi 19 juillet 2018

Why do these statements have different behavior in C

I have two different if statements that logically mean the same thing as far as I can tell. The first one always works as intended but the second one will sometimes miss and not trigger when it should.

Can anyone explain why?

First:

If(!(condition1 && condition2))

Second:

If(!condition1 && !condition2)

Aucun commentaire:

Enregistrer un commentaire