yes conversion specifier missing i think On Tue, Aug 30, 2011 at 11:37 PM, SANDEEP CHUGH <[email protected]>wrote:
> but sanjay in the ques it is "*c*cd" > > shudn't there be a % before that ?? > > > On Tue, Aug 30, 2011 at 11:22 PM, Sanjay Rajpal <[email protected]> wrote: > >> Run the following program : >> >> main() >> { >> int a,b; >> scanf("%d %*d",&a,&b); >> printf("\na= %d, b=%d",a,b); >> } >> >> now see the values of a and b, and post the result here. >> >> Sanju >> :) >> >> >> >> On Tue, Aug 30, 2011 at 10:46 AM, sukran dhawan >> <[email protected]>wrote: >> >>> i don think so.can u brief it ? >>> >>> >>> On Tue, Aug 30, 2011 at 10:45 PM, Sanjay Rajpal <[email protected]>wrote: >>> >>>> only year gets scanned here, * suppresses assignment of day and month. >>>> >>>> Sanju >>>> :) >>>> >>>> >>>> >>>> On Tue, Aug 30, 2011 at 9:08 AM, sukran dhawan >>>> <[email protected]>wrote: >>>> >>>>> sscanf is similar to scanf except that input is read from string rather >>>>> than keyboard or i/o >>>>> *c -supression character.it reads character and discards it.doesnt >>>>> store it anywhere >>>>> >>>>> >>>>> On Tue, Aug 30, 2011 at 9:32 PM, Mani Bharathi < >>>>> [email protected]> wrote: >>>>> >>>>>> char*str="11/1/1999"; >>>>>> >>>>>> sscanf(str,"*c*cd",&month,&day,&year); >>>>>> >>>>>> -- >>>>>> You received this message because you are subscribed to the Google >>>>>> Groups "Algorithm Geeks" group. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msg/algogeeks/-/60kR7ykKiksJ. >>>>>> 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. >>>>>> >>>>> >>>>> -- >>>>> 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. >>>>> >>>> >>>> -- >>>> 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. >>>> >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > -- > 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. > -- 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.
