Define bitwise-and operator, C/C++ Programming

Assignment Help:

Define Bitwise-AND Operator: &:?

The bitwise-AND operator (&) compares every bit of its first operand to the corresponding bit of its second operand. If both bits are 1 the matching result bit is set to 1. or else the corresponding result bit is set to 0.

x

y

x & y

0

0

0

0

1

0

1

0

0

1

1

1

In the following instance the bitwise-AND operator (&) contrast the bits of two integers nNumA and nNumB:

// Example of the bitwise-AND operator

int nNumA=1, nNumB=3, nNumC; // 00000001, 00000011
nNumC = nNumA & nNumB; // nNumC is now 1


Related Discussions:- Define bitwise-and operator

Introduction of computer and programming concept, Classify computer system ...

Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.

Functions, what is the difference between call by reference and call by poi...

what is the difference between call by reference and call by pointer method?

Problem : Compiler Design - Limit the methods, Rahul is a newbie to the pro...

Rahul is a newbie to the programming and while learning the programming language he came to know the following rules: · Each program must start with ''{'' and end with '

#title minimization and maxmization assignment problem, how we can code in ...

how we can code in c++ for assignment problem (operation research) method to mkinimization and mamization

MCQ, in a multilist organisation

in a multilist organisation

#title.digital clock, Write a program to print a digital clock which displa...

Write a program to print a digital clock which displays the time for 2 hours .

Basics, conceptual difference between big o,big thete and big omega

conceptual difference between big o,big thete and big omega

Array, If an array holds integer, each of which is four bytes long, how man...

If an array holds integer, each of which is four bytes long, how many bytes from the base location of the array is the location of the fifth element?

FILES, My file pointer is going to the location which i specified and writi...

My file pointer is going to the location which i specified and writing the value but it is in next line so,please help me iam developing in visual studio6

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd