yeah, plz explain the effect/use of comma operator. On Sat, Feb 5, 2011 at 8:16 PM, nishaanth <nishaant...@gmail.com> 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 <gajju3...@gmail.com>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 <gajju3...@gmail.com>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 <agrvaib...@gmail.com>wrote: >>> >>>> @ankit: how x is 20? >>>> >>>> >>>> On Sat, Feb 5, 2011 at 4:46 PM, ankit sablok <ankit4...@gmail.com>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 < >>>>> radhakrishnance...@gmail.com> 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 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. >>>> >>> >>> >> -- >> 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. >> > > > > -- > 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 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.