title: Right Justified Zero filled String in C
body: <p>I want to right justify a string value with zero filled on left hand side. I have written following code but it prints white space instead of 0.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
      int main()
      {
              char s[4]="PJ";
              printf("%04s",s);
      }
  
      Output: "  PJ"
  
      I need output as "00PJ".
  </code></pre>