Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
May 21, 2018, 09:31:03 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
Author Topic: Page 59 - program output explanation...  (Read 1286 times)
Posts: 9

« on: May 03, 2009, 11:11:07 AM »

Not 100% sure that this is an error, but thought I would mention it just to be safe.

On page 59 in the explanation of the program output the first NSLog call is broken down into 3 separate points. The first one reads:

      "1. Because division has higher precedence than addition, the value of a (25) is divided
            by 5 first. This gives the intermediate result of 4."

Shouldn't it read: "This gives an intermediate result of 5." ? This seems to be confirmed in number 2 where it says "...the intermediate result of 5 is next multiplied..."

Love the book.

All the best.

Hero Member
Posts: 3114

« Reply #1 on: May 03, 2009, 11:54:38 AM »

Yes, it should be 5.  Thanks.

Steve Kochan
Pages: [1]   Go Up
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents ゥ 2009 All rights reserved.