title: Why is std::cout not printing the correct value for my int8_t number?
body: <p>I have something like:</p>
  
  <pre><code>int8_t value;
  value = -27;
  
  std::cout &lt;&lt; value &lt;&lt; std::endl;
  </code></pre>
  
  <p>When I run my program I get a wrong random value of <code>&lt;E5&gt;</code> outputted to the screen, but when I run the program in gdb and use <code>p value</code> it prints out -27, which is the correct value.  Does anyone have any ideas?</p>