top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the function of '<<=' operator in C?

+1 vote
294 views
What is the function of '<<=' operator in C?
posted Dec 29, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The operator <<= is used to shift the bits of variable (mentioned at the left side) by the number (mentioned at the right side).
For example:
int a = 1;
int b = 3;
a <<= b;
printf("%d", a);

Output will be = 8 because value of variable a is left shifted by 3.

answer Dec 29, 2017 by Ganesh
...