title: What does printf("%*.*s",int,int,char *) mean in c?
body: <p>I got a code snippet in which there is a statement</p>
  
  <pre><code>printf("%*.*s");
  </code></pre>
  
  <p>what does the <code>%*.*s</code> mean?</p>
  
  <p>The code is</p>
  
  <pre><code>char *c="**********";
  int i,n=4;
  for(i=1;i&lt;=n;i++)
  {
  printf("%*.*s\n",i,i,c);
  }
  </code></pre>
  
  <p>Output is:</p>
  
  <pre><code>*
  **
  ***
  ****
  </code></pre>