Welcome, Guest. Please login or register.
Did you miss your activation email?
May 23, 2017, 09:45:34 AM
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
Author Topic: Page 59 - program output explanation... (Read 1176 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:

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.