Chapter 4: Problem 1
What will the following program segments display? a) \(x=2\) \(y=x++\) System .out .println (y) b) \(x=2\) System.out.println (x++) ; c) \(x=2\) System. out .println \((--x)\) d) \(x=8\) \(y=x--\) System .out.println (y)
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.