Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
August 16, 2017, 08:24:44 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
  Print  
Author Topic: Page 59 - program output explanation...  (Read 1206 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:  

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 classroomM.com. All rights reserved.