A

Admin • 833.24K Points
Coach

Q. The result of the following operation is

Code:
100 << 3
  • (A) 001
  • (B) 300
  • (C) 800
  • (D) Error
  • Correct Answer - Option(C)
  • Views: 21
  • Filed under category Perl
  • Hashtags:

Explanation by: Admin

The "<<" is a binary left shift operator, if left shifts the bits of the first operand, the second operand decides the number of places to shift.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.