printf function help

Tarun Karra plug-devel@lists.PLUG.phoenix.az.us
Mon Mar 1 11:48:02 2004


--0-467866818-1078166703=:89920
Content-Type: text/plain; charset=us-ascii

hi ,,
 
what does this program print and why
I know printf can take variable arguments..
how does compiler treat %d in this program..
#include <stdio.h>
int main()
{
  printf("%d") ;
  return 0;
}
 
thx
tarun


---------------------------------
Do you Yahoo!?
Get better spam protection with Yahoo! Mail
--0-467866818-1078166703=:89920
Content-Type: text/html; charset=us-ascii

<DIV>hi ,,</DIV>
<DIV>&nbsp;</DIV>
<DIV>what does this program print and why</DIV>
<DIV>I know printf can take variable arguments..</DIV>
<DIV>how does compiler treat %d in this program..</DIV>
<DIV>#include &lt;stdio.h&gt;</DIV>
<DIV>int main()<BR>{<BR>&nbsp; printf("%d") ;<BR>&nbsp; return 0;<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>thx</DIV>
<DIV>tarun</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
Get better spam protection with <a href="http://us.rd.yahoo.com/mailtag_us/*http://antispam.yahoo.com/tools">Yahoo! Mail</a>
--0-467866818-1078166703=:89920--