@ Deoki : Can u please explain how did dis outcome come?

On Mon, Jul 25, 2011 at 10:49 PM, Deoki Nandan <deok...@gmail.com> wrote:

> run on gcc compiler it would be
> 0
> 1 1
>
>
> On Mon, Jul 25, 2011 at 10:35 PM, geek forgeek <geekhori...@gmail.com>wrote:
>
>> 1.
>> #include<stdio.h>
>> main()
>> {
>> int i=1;
>>  printf("\n%d",i^=1%2);
>>  printf("\n%d %d",i^=1%2,i<<=1%2);
>> return 0;
>> }
>>
>> output 3 3
>> hey shudnt the output be 3 2
>>
>>
>>  --
>> 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.
>>
>
>
>
> --
> **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 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.
>



-- 
Aditi Garg
Undergraduate Student
Electronics & Communication Divison
NETAJI SUBHAS INSTITUTE OF TECHNOLOGY
Sector 3, Dwarka
New Delhi

9718388816

-- 
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.

Reply via email to