Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How does the displacement effectives work?

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.


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

Sign In or Register to comment.