title: How to make space between array values in printing?
body: <p>I'm interested, how could i get same result in C++. For this C code:</p>
  
  <pre><code>for(i=0;i&lt;n;i++)
      printf("%4d",array[i]);
  </code></pre>
  
  <p>This will create 4 space gap between my values from array.</p>
  
  <p>Is there something similar in C++?</p>