title: Linux,c++, negative exit codes, clarifiction?
body: <p>In Linux, c++ can we return exit codes? i.e is this code valid:</p>
  
  <pre><code>int main()
  {
    return -1;
  }
  </code></pre>
  
  <p>The reason I am asking if this code is compiled and executed from bash/zsh, the return value would be 255, I thin this due to the fact that its using an 8 bit return code, and that implies that return codes are only allowed to be between positive.</p>
  
  <p>Is this correct?</p>