Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK Beginning Linux Programming, 3rd Edition
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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



Reply With Quote
  #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

Reply With Quote
  #3 (permalink)  
Old December 3rd, 2004, 12: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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 07: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



All times are GMT -4. The time now is 05:37 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.