how to shift code example
Example 1: c right bit shift
// 5: 0...0101
int a = 5;
//shift int a 2 bits
int n = (a >> 2);
Example 2: What are bit-shift operators and how do they work?
What are bit-shift operators and how do they work?
// 5: 0...0101
int a = 5;
//shift int a 2 bits
int n = (a >> 2);
What are bit-shift operators and how do they work?