<< Bitwise Operators in C, Binary Left Shift Operator. The left operands value is moved left by the number of bits specified by the right operand.
C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)
1104Program:
#include"stdio.h" void main() { unsigned int a = 60; /* 60 = 0011 1100 */ int c = 0; c = a << 2; /* 240 = 1111 0000 */ printf(" Value of c is %d\n", c ); }
Output:
Value of c is 240 Press any key to continue . . .
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.