Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK Beginning Linux Programming, 3rd Edition
This is the forum to discuss the Wrox book Beginning Linux Programming, 2nd Edition by Richard Stones, Neil Matthew, Alan Cox; ISBN: 9780764543739
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning Linux Programming, 3rd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 22nd, 2004, 08:07 PM
Registered User
 
Join Date: Apr 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3, page 101. File modes.

In the text the auther says,

"Values for each digit are ANDed together; do digit 2 will have 2 & 1, giving 3."

Now, I'm not an amazing hacker, but even I know that is completely wrong.

int n = 2&1;
printf( "2 & 1 = %d", n );

Will print:
2 & 1 = 0

10 AND 01 = 00



  #2 (permalink)  
Old July 5th, 2004, 06:28 PM
Registered User
 
Join Date: Jul 2004
Location: Voorhees, NJ, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you have caught a typo, the sentence should have read

"Values for each digit are ORed (not ANDed) together; do digit 2 will have 2 | 1, giving 3."

-Laeeq M Khan

  #3 (permalink)  
Old December 3rd, 2004, 01:30 AM
Registered User
 
Join Date: Dec 2004
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has someone reported this typo? Has it been confirmed?

ian

Jack of all trades; master of none.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Total newbie to JSCRIPT-101 question rgouette Other Programming Languages 3 October 15th, 2007 12:28 PM
Getting a Text file from a HTML File or web page rajesh.java Java Basics 1 January 20th, 2007 08:36 AM
Chapter 9, Try it out Page 338, C# tbroom BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 October 3rd, 2006 03:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.