define bitwise left shift and right shift


Define Bitwise Left Shift and Right Shift Operators: <<, >>?

The bitwise shift operators shift their first operand right (>>) or left (<<) by the number of positions the second operand specifies. In the following instance the right shift operator moves the data bits two positions to the right therefore changing the value of nNumA:

// Illustration of the bitwise right shift operator
int nNumA=8; // beginning value is 8
nNumA >> 2; // ending value is 2

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: define bitwise left shift and right shift
Reference No:- TGS0305217

Expected delivery within 24 Hours