I think this is a simple question, but I'm struggling with the following. In my example I have the following statement (language is C):
int foobar
if (foobar)
{
// do something.
}
Now, if I am correct about this, this statement is true when foobar
is not zero. So it should be much the same as if (foobar!=0)
.
But what happens if foobar
becomes a negative number?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…