Implementing Logical Right Shift in C May 16, 2023 by Tarik int lsr(int x, int n) { return (int)((unsigned int)x >> n); }