Amazon.com Widgets Page 59 - program output explanation...
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 22, 2014, 05:37:23 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Errata
| | |-+ 5th printing
| | | |-+ Page 59 - program output explanation...
Pages: [1] Go Down
Print
Author Topic: Page 59 - program output explanation... (Read 816 times)
davej
Newbie
*
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.

--Dave--
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







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

Yes, it should be 5.  Thanks.

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



Login with username, password and session length

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 (c) 2009 classroomM.com. All rights reserved.