yeah, plz explain the effect/use of comma operator. On Sat, Feb 5, 2011 at 8:16 PM, nishaanth <[email protected]> wrote:
> how does it ignore ' , ' for x but not for y ?. Can you explain what > happens if u give , in an int. > > > On Sat, Feb 5, 2011 at 6:34 PM, Gajendra Dadheech <[email protected]>wrote: > >> x would be 20 as when we put zero in front of any number then this is >> taken as octel number and value of 024 in decimal would be 20 >> >> >> Thanks and regards, >> Gajendra Dadheech >> >> >> >> >> On Sat, Feb 5, 2011 at 6:30 PM, Gajendra Dadheech <[email protected]>wrote: >> >>> 20,1 this would be output >>> >>> Thanks and regards, >>> Gajendra Dadheech >>> Software Engineer-I (R&D) >>> ---------------------------------------- >>> MediaTek India Technology >>> Work: 120-4343900(Ext. 276) >>> Mobile: +91-9540646145 >>> ----------------------------------------- >>> "Be the change you want to see in the world" -Mohandas Gandhi >>> >>> >>> >>> >>> On Sat, Feb 5, 2011 at 6:11 PM, vaibhav agrawal <[email protected]>wrote: >>> >>>> @ankit: how x is 20? >>>> >>>> >>>> On Sat, Feb 5, 2011 at 4:46 PM, ankit sablok <[email protected]>wrote: >>>> >>>>> x is 20 for sure and y i m guessing to be 1 comma operator and 0 used >>>>> for octal constnts >>>>> >>>>> >>>>> On Sat, Feb 5, 2011 at 3:01 PM, radha krishnan < >>>>> [email protected]> wrote: >>>>> >>>>>> guess the output >>>>>> >>>>>> main() >>>>>> { >>>>>> int x=(1,024),y; >>>>>> y=1,024; >>>>>> printf("%d %d",x,y); >>>>>> } >>>>>> >>>>>> -- >>>>>> 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. >> > > > > -- > S.Nishaanth, > Computer Science and engineering, > IIT Madras. > > -- > 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.
