On Mon, Jul 13, 2009 at 4:57 PM, manish_m95<[email protected]> wrote: > > int a=5,c,d; > > c=a/++a; > d=++a/a++; > > plz tell me how to evaluate these expression
You don't. They're undefined. See http://c-faq.com/expr/evalorder2.html In both cases, you can never know which out of the denominator or numerator is evaluated first (this has nothing to do with the usual BODMAS rules or left-right/right-left evaluation rules which apply *after* they're evaluated.) -- PJH http://shabbleland.myminicity.com/com http://www.chavgangs.com/register.php?referer=9375
