Quantcast
Channel: Programmers Heaven Forums RSS Feed
Viewing all articles
Browse latest Browse all 2703

How does the displacement effectives work?

$
0
0
How does the displacement effectives work?
>> It displaces the bits of the variable to the left with a certain number of boxes.
<< It displaces the bits of the variable to the right with a certain number of boxes.
=>> It displaces the bits of the variable to the left with a certain number of boxes, and the result is attributed to the same variable.
=<< It displaces the bits of the variable to the right with a certain number of boxes, and the result is attributed to the same variable.


Note that the number which consist of five boxes on the right of the resulted number from the displacement forms the wasted part as it went out the boundaries of the Byte and accordingly it doesn't exist at all, but the new five boxes on the left are always zeros i.e. there is a wasted part and zeros written to fill the space resulted from the displacement.


For more, Please visit the below site:
http://awesomesoftwre.blogspot.com/2013/05/the-c-language-lesson-10.html


Viewing all articles
Browse latest Browse all 2703

Trending Articles