Arista Networks interview question

rotate a unsigned char s by n bits

Interview Answer

Anonymous

1 Feb 2013

(s>>n)|(s<<(8-n))

7