>
> 3.main()
>>>
>>> {
>>>
>>>  int i=1;
>>>
>>> printf("%d\t%d\t%d\t",i,i++,i++);
>>>
>>> }
>>>
>>> output: 3 2 1
>>>
>>> Scan from right. Rightmost i++ is encountered. Value of i is incremented
>>> but this is post increment, so the effect of increment will not show on this
>>> i (But other i's are now incremented). Again another i++ is encountered.
>>> Value of i is incremented but this is post increment, so the effect of
>>> increment will not show on this i again. So the leftmost i is now printed 3,
>>> mid one as 2, right one as 1.
>>>
>>>
>>>  4.main()
>>>
>>> {
>>>
>>>  int i=1;
>>>
>>> printf("%d\t%d\t%d\t",i,++i,++i);
>>>
>>> }
>>>
>>> output: 3 3 3
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Regards
>>> by THANU
>>>
>>>  --
>>> 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.
>>>
>>
>>
>>
>> --
>> Nikhil Gupta
>> Senior Co-ordinator, Publicity
>> CSI, NSIT Students' Branch
>> NSIT, New Delhi, India
>>
>>  --
>> 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.
>



-- 
Nikhil Gupta
Senior Co-ordinator, Publicity
CSI, NSIT Students' Branch
NSIT, New Delhi, India

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

Reply via email to