title: what is the return type of printf
body: <p>It may be stupid question, but i'm confused. That's why i'm clearing my doubt. yesterday, during my interview i got one question like </p>
  
  <pre><code>char ch="Hello";
  printf("%d",printf("%s",ch));
  </code></pre>
  
  <p>I thought <code>printf</code> is a <strong>void</strong> type function, because i never seen <code>printf</code> function to assign to any variable. So, i told, it will show <strong>compile error</strong>. Since, compiler won't find return type <code>printf</code> function. But, i was wrong. And the output is <strong>Hello5</strong>. I'm really confuse, how this comes.</p>