Top "Shift" questions

Questions related to the usage of the right and/or left shift key on the keyboard.

In C Left shift (char) 0xFF by 8 and cast it to int

On left shift of (char) 0xff by 8 and casting it to int we get -256 or 0xffffff00. Can somebody explain …

c char signed shift
JavaScript can't capture "SHIFT+TAB" combination

For whatever reason I can't capture "SHIFT+TAB" combination. I am using the latest jQuery. Same result if I use …

javascript jquery tabs shift
PHP: 'rotate' an array?

is it possible to easily 'rotate' an array in PHP ? Like this: 1, 2, 3, 4 -> 2, 3 ,4 ,1 Is there some kind of built-in …

php arrays rotation shift
Keyboard shift key having issues

Whenever i press the Shift key, it causes the same effect as if i pressed the Ctrl+v shortcut. It …

keyboard key shortcut paste shift
Shifting a String in C#

static void Main(string[] args) { string s = "ABCDEFGH"; string newS = ShiftString(s); Console.WriteLine(newS); } public static string ShiftString(string …

c# arrays string char shift
Verilog Barrel Shifter

I want to create a 64-bit barrel shifter in verilog (rotate right for now). I want to know if there …

rotation verilog bit-shift shift case-statement
C unsigned int array and bit shifts

If i have an array of short unsigned ints. Would shifting array[k+1] left by 8 bits, put 8 bits into the …

c arrays int bit shift
How to determine if the SHIFT or CTRL key was pressed when launching the application

I need to be able to determine if the SHIFT or CTRL keys were pressed when the application is launched …

vb.net winforms vb.net-2010 shift ctrl
Galois LFSR explanation of code

I am trying to understand how the galois LFSR code works. On the wikipedia page there is a figure with …

c math shift galois-field
Change elements positions in an array and shift elements in between

I would like to pick an element in an array, move it to another index, and then "shift/rotate" the "…

javascript arrays insert rotation shift