>> Bitwise Operators in C, Binary Right Shift Operator. The left operands value is moved right 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)
1049Program:
#include"stdio.h" void main() { unsigned int a = 60; /* 60 = 0011 1100 */ int c = 0; c = a >> 2; /* 15 = 0000 1111 */ printf(" Value of c is %d\n", c ); }
Output:
Value of c is 15 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.