+1 dave
Its giving 97 in my compiler.

On Fri, Sep 23, 2011 at 4:22 PM, vishwa <vishwavam...@gmail.com> wrote:

> its 21 .
>
>
> On Fri, Sep 23, 2011 at 4:10 PM, vijay singh <vijaysinghb...@gmail.com>wrote:
>
>> Think it as following...
>> (++i + ++i) + ++i;
>> i.e.
>> (7 + 7) + 8;
>>
>> 1) calculate ++i  i.e i=6
>> 2) calculate ++i  i.e i=7
>> 3) calculate (i + i)  i.e (7+7) = 14 because i is now 7
>> 4) calculate ++i  i.e i=8
>> 5) calculate 14 + i  i.e 22
>>
>>  --
>> 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.
>



-- 
Regards
Kunal Yadav
(http:/sourcebit.in/ <http://algoritmus.in>)

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