Search:

Type: Posts; User: JohnnyNW

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,656

    Re: Question about expression result

    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...
  2. Replies
    3
    Views
    1,656

    Question about expression result

    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:
Results 1 to 2 of 2