Computer Science, asked by Nuo, 17 days ago

N+= N++ * ++N – (N++ + N) if int N = 12 in java
pls solve fast its very urgent ​

Answers

Answered by ash1654
2

Answer:

Explanation:

++n increments the value and returns the new one.

n++ increments the value and returns the old one.

Thus, n++ requires extra storage, as it has to keep track of the old value so it can return it after doing the increment.

I would expect the actual difference between these two to be negligible these days. I know a lot of compilers will optimize it so they're identical if the return of n++ isn't actually used, though I don't know of Java does that

Answered by koyeldebnath2659
2

Answer:

your answer is in the attachment

Explanation:

hope it's help you XD

Attachments:
Similar questions