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

Pragma, How to specify different memory sections for a variable using #Prag...

How to specify different memory sections for a variable using #Pragma?

Described smart pointer?, A: A smart pointer is a C++ class which mimics a ...

A: A smart pointer is a C++ class which mimics a regular pointer in syntax and some semantics, however it does more. Since smart pointers to distinct types of objects tend to have

Battleship game, Create a program to print a battleship grid to the console...

Create a program to print a battleship grid to the console and mark squares as destroyed

Law of motion, Ask question asdasasas#Minimum 100 words accepted#

Ask question asdasasas#Minimum 100 words accepted#

Programming and solving problems, One person who is specialist at programmi...

One person who is specialist at programming and solving problems with a computer Project Description: Dear Potential computer, hardware, programming and software genius, I

Explain the function of five elements that are on a, explain the function o...

explain the function of five elements that are found on a motherboard#

Arrays, how do I randomised numbers in an array?

how do I randomised numbers in an array?

Creating shopping carts, how to create a shopping cart and sibmit the code ...

how to create a shopping cart and sibmit the code segment on screan

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