------------------------------------------------------
my problem is, if such / similar question arises in gate (IIT entrance exam for M.Tech), what should i write?
[SNIP]
You should write that the answer to this situation is uncertain.
any help regarding the actual concept of solving problems similar to the above will be greatly appreciated.
[SNIP]
Use brackets to tell the compiler about the precedence else compilers will keep on giving ambiguous answeres.
p.s.: Let Us C - yeshwant kanithkar -> appendix A (precedence of operators) -> increment/decrement operators, says that increment/decrement operators act from right to left. what does that mean?
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com