let this statement int x=100,y=5;printf("%*d",x,y);
in this line first x is assign to '*' and it become "%100d"
and it will padd 100 spaces before print. and if we use( "%*d",x)
then x is assign to '*' and garbage value wud be printed.On Fri, Oct 28, 2011 at 8:53 PM, annarao kataru <[email protected]>wrote: > can u plz tell me what exactly %*d means? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- AMRIT -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
