Computer Science, asked by devsonkar, 8 months ago

What will be the output for :

System.out.println(X++==X);

Answers

Answered by supriya484
1

I don't know!

I hate computer!!!!!

Answered by prathamesh3225
0

Explanation:

First, you have 4.

Then in the second line you have this:

4 += 4 + 6 + 6

x++ means you put value of x first and then it is incremented, so you got 4. In the case of ++x the value of x is incremented once again, that's why you got 6.

Similar questions