Plz explain me how it comes 2 2 2 as 6th printf.......... On Thu, Jul 28, 2011 at 11:55 AM, Prem Krishna Chettri <[email protected]>wrote:
> Can SomeOne verify the Compilation as .. > > 1 > 211 > 1 > 221 > 1 > 222 > 0 > 0-10 > 0 > 00-1 > 0 > 0-1-1 > > Thx.. > > > On Thu, Jul 28, 2011 at 11:47 AM, sagar pareek <[email protected]>wrote: > >> +1 @ankur :) >> >> >> On Wed, Jul 27, 2011 at 11:23 PM, Ankur Khurana <[email protected] >> > wrote: >> >>> one request : dont use trubo C >>> >>> >>> On Wed, Jul 27, 2011 at 10:23 PM, Vijay Khandar <[email protected] >>> > wrote: >>> >>>> I m getting o/p >>>> 1 >>>> 2 1 1 >>>> 1 >>>> 2 2 1 >>>> but on wards when x=y=z= -1 >>>> then i m getting something different o/p..... >>>> >>>> On Wed, Jul 27, 2011 at 10:18 PM, Jnana Sagar <[email protected] >>>> > wrote: >>>> >>>>> what do u mean by o/p..actually what r u asking for..sorry to ask >>>>> so..i couldn't get u.. >>>>> >>>>> On 7/27/11, Vijay Khandar <[email protected]> wrote: >>>>> > #include<stdio.h> >>>>> > #include<conio.h> >>>>> > void main() >>>>> > { >>>>> > clrscr(); >>>>> > int x,y,z; >>>>> > x=y=z=1; >>>>> > printf("\n %d",++x||++y&&++z); >>>>> > printf("\n %d %d %d ",x,y,z); >>>>> > x=y=z=1; >>>>> > printf("\n %d",++x&&++y||++z); >>>>> > printf("\n %d %d %d",x,y,z); >>>>> > x=y=z=1; >>>>> > printf("\n %d",++x&&++y&&++z); >>>>> > printf("\n %d %d %d",x,y,z); >>>>> > x=y=z=-1; >>>>> > printf("\n %d",++x&&++y||++z); >>>>> > printf("\n %d %d %d",x,y,z); >>>>> > x=y=z=-1; >>>>> > printf("\n %d",++x||++y&&++z); >>>>> > printf("\n %d %d %d",x,y,z); >>>>> > x=y=z=-1; >>>>> > printf("\n %d",++x&&++y&&++z); >>>>> > printf("\n %d %d %d",x,y,z); >>>>> > getch(); >>>>> > } >>>>> > >>>>> > plz anyone provide the o/p for this program.........I m very much >>>>> > confusing >>>>> > >>>>> > -- >>>>> > 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. >>>> >>> >>> >>> >>> -- >>> Ankur Khurana >>> Computer Science >>> Netaji Subhas Institute Of Technology >>> Delhi. >>> >>> -- >>> 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 >> SAGAR PAREEK >> COMPUTER SCIENCE AND ENGINEERING >> NIT ALLAHABAD >> >> -- >> 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.
