title: What is the use of %4d when enclosed by parentheses?
body: <p>I have a C Code below,</p>
  
  <pre><code>int main (void)
  {
      int n = 5;
  
      printf ("%4d\n",n);
  
      return 0;
  }
  </code></pre>
  
  <p>It gives me the output 5 leading by four spaces.</p>
  
  <p>But what be the code if I want to print "<code>    (5)</code>" with four leading spaces (but "<code>   (21)</code>" with three leading spaces, or "<code>  (987)</code>" with two leading spaces, etc)?</p>
  
  <p>Meanwhile I tried <code>printf ("%4(d)\n",n);</code> and <code>printf ("(%4d)\n",n);</code> but these twos gave <code>(d)</code> and <code>(    5)</code> respectively.</p>