Define one's complement operator, C/C++ Programming

Assignment Help:

Define One's Complement Operator?

The one's complement operator, occasionally called the "bitwise NOT" or "bitwise complement" operator produces the bitwise one's complement of its operand. The operand should be of integral type. This operator performs common arithmetic conversions the result has the type of the operand after conversion.

x

~x

0

1

0

0

In the following instance the new value assigned to y is the one's complement of the original unsigned short value:

// Example of the one's complement operator

unsigned short y = 0xAAAA;  // value of y is 0xAAAA

y = ~y;                     // value of y is 0x5555


Related Discussions:- Define one's complement operator

Explain the parts of operators, Explain the parts of operators Assignm...

Explain the parts of operators Assignment Operators The equal (=) sign is used for assigning a value to another. The left hand side has to be a variable (lvalue, which exc

C, find area uder the curve y=f(x) between x=a and x=b

find area uder the curve y=f(x) between x=a and x=b

VS Project, Hi, I want to get rtsp source for windows

Hi, I want to get rtsp source for windows

Class, array of class objects and single inheritance

array of class objects and single inheritance

Define storage classes of c program - computer programming, Define Storage ...

Define Storage Classes of c program - computer programming? Each variable and function in C language has two attributes that are type and storage class. If storage class of a v

Function, write a function named "fact"that takes one integer arguments,ca...

write a function named "fact"that takes one integer arguments,call them "num" and returns as ..............

Make c code works equally on 64 and 32 bit, Project Description: I have ...

Project Description: I have a code that works different on 64 bit and 32 bit system. Code is relative to some crypt functions, similar, but not equal to: I have to move fr

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