I'm trying to understand the bitwise operators related to a piece of code I found. So far I failed to understand the shifting part. Could someone explain to me related to below sample code?
The example list:
var list = new List<int>();
int[] input = { 0, 2, 15, 19, 31, 32};
list.AddRange(input);
Then part of a code:
foreach (var i in list)
{
var pos = i >> 3;
}
What does the i >> 3 relate to? To the list position or the input value position?