title: %.#s format specifier in printf statement in c
body: <p>Please explain the output. What does <code>%.#s</code> in <code>printf()</code> mean?</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main(int argc,char*argv[]){
  
      char *A="HELLO";
      printf("%.#s %.2s\n",A,A);
      return 0;
  }
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>#s HE
  </code></pre>