How to write following java statement using two separate statements? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

10th Feb 2018, 5:07 PM
Ads Kumarasinghe
Ads Kumarasinghe - avatar
1 Answer
+ 1
Y += 1; X = Y;
10th Feb 2018, 4:47 PM
Leonardo Medai Cossutta
Leonardo Medai Cossutta - avatar