This is what you use if you want *scanf()* to eat some data but you don't want to store it anywhere; you don't give *scanf()* an argument for this conversion
On Sun, Oct 9, 2011 at 1:32 AM, shiva@Algo <shiv.jays...@gmail.com> wrote: > as expected value 100 goes to a,since %*d is variable field width specifier > so the input 200 goes for that,and the remaining input 300 goes to b > value of c is not change > so the output will be: > 100 300 3 > > > On Sun, Oct 9, 2011 at 12:22 AM, Raghav Garg <rock.ragha...@gmail.com>wrote: > >> *explain the o/p...if i/p are 100 200 300 >> int main() >> { >> int a=1,b=2,c=3; >> scanf("%d %*d %d",&a,&b,&c); >> printf("%d %d %d",a,b,c); >> return(0); >> } >> *Thanking you >> >> *With regards- >> Raghav garg >> Contact no. 9013201944 >> www.facebook.com/rock.raghavag >> B. tech (IT), 5th sem >> University School Of Information Technology >> Guru Govind Singh Indraprastha University >> Delhi* >> >> -- >> 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.