title: How to write integers with write() function in C?
body: <p>I'm a noob on C and trying to use <code>write()</code> function to show an integer.</p>
  
  <p>These is my code:</p>
  
  <pre><code>int n = 7;
  write(1, &amp;n, 4);
  </code></pre>
  
  <p>I want to show <code>7</code>, but the program shows nothing or other strange character when I set <code>n</code> to a big number.</p>
  
  <p>What am I missing?</p>