C program to demonstrate example of right shift (>>) operator
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Example of Right Shift (>>) Operator in C program
Right Shift Operator (>>) is a bitwise operator, which perform operation on bits. It is used to shift given number of bytes in the right and inserts 0’s in the left.
Binary of 0xFF in (in 4 bytes format) - 0000 0000 1111 1111.
After 2 bytes right shift (in 4 bytes format) – 0000 0000 0011 1111, which is equivalent of 0x003F.
need an explanation for this answer? contact us directly to get an explanation for this answer