Top work!
After you mentioned the "casting will be done before the arithmetic operator" it all made sense :)
I know increments and decrements like x++ and --x have priority, it did NOT mention...
Type: Posts; User: JohnnyNW
Top work!
After you mentioned the "casting will be done before the arithmetic operator" it all made sense :)
I know increments and decrements like x++ and --x have priority, it did NOT mention...
I have a question about this:
Which of the following expression results in 45.37:
This can NOT work, why?
(int)(45.378) * 100 / 100.0
BUT this CAN work: