printf returns no of characters printed..first of all the rightmost printf will print 2 2 .and since it is printing 3 characters(two 2's and 1 space) thereby its returning 3.same is with the other printf..now the outer most printf will print the value of(3 & 3) which is 3..and hence the answer.
On Sun, Jul 17, 2011 at 12:46 AM, Deoki Nandan <[email protected]> wrote: > Give reason not answer . Answer can be found by compiler > > > On Sun, Jul 17, 2011 at 12:38 AM, Kamakshii Aggarwal < > [email protected]> wrote: > >> answer to the first should be 2 22 23 >> >> >> On Sat, Jul 16, 2011 at 5:44 PM, varun pahwa <[email protected]>wrote: >> >>> ignore my previous result. >>> >>> the ans to first should be 2 22 2 0. >>> and the ans to second should be. >>> >>> 2 222 >>> 2 >>> please correct me if i am wrong. >>> >>> >>> >>> On Sat, Jul 16, 2011 at 5:38 PM, varun pahwa >>> <[email protected]>wrote: >>> >>>> the ans to first should be 2 2 2 2 0. >>>> and the and to second should be. >>>> 222 2 >>>> 2 >>>> please correct me if i am wrong. >>>> >>>> On Sat, Jul 16, 2011 at 4:57 PM, shady <[email protected]> wrote: >>>> >>>>> @ankur that's right :) >>>>> >>>>> >>>>> On Sat, Jul 16, 2011 at 3:25 PM, Ankur Khurana < >>>>> [email protected]> wrote: >>>>> >>>>>> answer for first should be >>>>>> 2 22 23 >>>>>> >>>>>> and for second >>>>>> 2 222 >>>>>> 2 >>>>>> correct me if i am wrong. >>>>>> On Sat, Jul 16, 2011 at 3:08 PM, Deoki Nandan <[email protected]>wrote: >>>>>> >>>>>>> what about this ???? >>>>>>> printf("\n%d",printf("%d %d",2,2)&printf("%d%d ",2,2)); >>>>>>> >>>>>>> >>>>>>> On Sat, Jul 16, 2011 at 3:04 PM, swetha rahul < >>>>>>> [email protected]> wrote: >>>>>>> >>>>>>>> 22222 >>>>>>>> >>>>>>>> >>>>>>>> On Sat, Jul 16, 2011 at 2:51 PM, shiv narayan < >>>>>>>> [email protected]> wrote: >>>>>>>> >>>>>>>>> Printf(“%d”,printf(“%d %d”,2,2) & printf(“%d %d ”, 2, 2)); >>>>>>>>> >>>>>>>>> -- >>>>>>>>> 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. >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> **With Regards >>>>>>> Deoki Nandan Vishwakarma >>>>>>> >>>>>>> * >>>>>>> * >>>>>>> >>>>>>> -- >>>>>>> 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. >>>>> >>>> >>>> >>>> >>>> -- >>>> Varun Pahwa >>>> B.Tech (IT) >>>> 7th Sem. >>>> Indian Institute of Information Technology Allahabad. >>>> Ph : 09793899112 >>>> Official Email :: [email protected] >>>> Another Email :: [email protected] >>>> >>>> People who fail to plan are those who plan to fail. >>>> >>>> >>> >>> >>> -- >>> Varun Pahwa >>> B.Tech (IT) >>> 7th Sem. >>> Indian Institute of Information Technology Allahabad. >>> Ph : 09793899112 >>> Official Email :: [email protected] >>> Another Email :: [email protected] >>> >>> People who fail to plan are those who plan to fail. >>> >>> -- >>> 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. >>> >> >> >> >> -- >> Regards, >> Kamakshi >> [email protected] >> >> -- >> 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. >> > > > > -- > **With Regards > Deoki Nandan Vishwakarma > > * > * > > -- > 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. > -- Regards, Kamakshi [email protected] -- 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.
