-65 >> 2 = -17 For this first get binary of 65 i.e 1000001 then apply >> 2 it'll be 0010000 now add 1 in this; Ans will be -17 thats correct.
Just because your technique happens to yield the correct answer, doesn't mean the technique is correct.
To do bit shifting on negative numbers, you need to understand two complement notation. First, you need to know the bit
pattern for -65. This is best achieved by taking a twos complement of 65.
Once you have -65, then shift as usual. Your result should be a negative number. To help figure out what it is, take a twos complement again to find the positive equivalent.
Henry