title: if statement integer
body: <p>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):</p>
  <pre><code>int foobar
  
  if (foobar)
  {
  // do something.
  }
  </code></pre>
  <p>Now, if I am correct about this, this statement is true when <code>foobar</code> is not zero. So it should be much the same as <code>if (foobar!=0)</code>.</p>
  <p>But what happens if <code>foobar</code> becomes a negative number?</p>