Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning C# 6.0 Programming with Visual Studio 2015
This is the forum to discuss the Wrox book Beginning C# 6.0 Programming with Visual Studio 2015 by Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid; ISBN: 978-1-119-09668-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning C# 6.0 Programming with Visual Studio 2015 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 September 1st, 2016, 01:18 PM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2012
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Missing Content? & and |

On page 55 it says:

"The & and | operators also have two similar operators, known as conditional Boolean operators, shown in Table 4-2."

Table 4.2 shows && and ||.

This seems to indicate the & and | operators have already discussed but I cannot find any mention in the previous text.

Kevin
Reply With Quote
  #2 (permalink)  
Old March 26th, 2017, 04:26 PM
Registered User
Points: 12, Level: 1
Points: 12, Level: 1 Points: 12, Level: 1 Points: 12, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reply

Hi,

The & and | are indeed operators but they are known as the bitwise operators. They compare the two operands at the bit level.

Additionally, the & can be used as a unary operator which yields the memory address of a variable.

I agree that the text should be changed to && and || as the bitwise operators are not discussed in those sections.

Michael
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
Error in Content Provider & SQLITE puneetverma05 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 January 15th, 2013 11:47 AM
reading & validating url content arnabghosh ASP.NET 3.5 Professionals 0 September 23rd, 2009 01:44 AM
Can I log out, not leave the page & change content edurazee ASP.NET 2.0 Basics 0 July 22nd, 2008 10:25 PM
Missing mail content with CDONTS sunile-zest Classic ASP Basics 1 July 10th, 2007 02:22 PM
» in content property natmaster CSS Cascading Style Sheets 1 April 17th, 2006 02:12 AM



All times are GMT -4. The time now is 01:15 AM.


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