compound-assignment Questions

1

Solved

In Java, when you do int b = 0; b = b + 1.0; You get a possible loss of precision error. But why is it that if you do int b = 0; b += 1.0; There isn't any error?
Kuehnel asked 23/4, 2010 at 7:8

8

Solved

I have the following code and I can't understand what does it mean: var1 |= var2>0 ? 1 : 2; Anyone can help me please!
Laurustinus asked 17/4, 2010 at 8:50

© 2022 - 2024 — McMap. All rights reserved.