On 1/18/07, manishrawat4u <[EMAIL PROTECTED]> wrote:

--- In [email protected], "mohaghghy" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "malaram kumhar" <malaram_engg@>
wrote:
> >
> > How does this expression could be solve and what is the value of
a and
> > b?
> >  int a=13;
> > b=++a + ++a;
> >
> 30
> 1 ++ & ++ -> a = 15
> 2 +
> 3 a + a -> 15 + 15
> 4 b = 30
>

++a=13+1=14
a++=14 (later 15)


Erm - there is no a++ in the original post (not that it matters that much)


so
a=15
b=14+14=28




--
PJH

Some people, when confronted with a problem, think "I know, I'll use regular
expressions." Now they have two problems.
—Jamie Zawinski, in comp.lang.emacs

Reply via email to