yes 5 will be printed with 99 extra padding spaces. On Sat, Oct 29, 2011 at 4:16 PM, rahul sharma <rahul23111...@gmail.com>wrote:
> does y goes to d of %*d and it print 5???i hav a doubt > > > On Fri, Oct 28, 2011 at 9:32 PM, amrit harry <dabbcomput...@gmail.com>wrote: > >> 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 >> <kataruanna...@gmail.com>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 algogeeks@googlegroups.com. >>> To unsubscribe from this group, send email to >>> algogeeks+unsubscr...@googlegroups.com. >>> 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 algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.