How to write following java statement using two separate statements? | SoloLearn: Learn to code for FREE!

0

How to write following java statement using two separate statements?

X=++Y; what is the answers of following? a. x=y; y=y+1; b y=y+1; x=y c y=y+1; x=y+1; d x=y+1; y=y+1 e x=y; y=x

2/10/2018 5:07:36 PM

Ads Kumarasinghe

1 Answer

New Answer

+1

Y += 1; X = Y;