C program to demonstrate example of left 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 Left Shift (<<) Operator in C program
Left Shift Operator (<<) is a bitwise operator, which perform operation on bits. It is used to shift given number of bytes in the left and inserts 0’s in the right.
Binary of 0xFF in (in 4 bytes format) - 0000 0000 1111 1111.
After 2 bytes left shift (in 4 bytes format) – 0000 0011 1111 1100, which is equivalent of 0x03FC.
need an explanation for this answer? contact us directly to get an explanation for this answer