Start learning →

In evaluating 3 * x++, which value of x is used in the product?

AIncremented value
BOriginal value of x
CValue doubled by 3
DResult of 3 * (x+1)
Answer & Solution
Correct answer: B. Original value of x
Postfix increment evaluates the surrounding expression with x before updating.
Practise this question with Quill — ICSE Class 8 →

Keep practising Operators in Java

Browse all Operators in Java questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Operators in Java lesson →