Commit 6080098
committed
feat: Add Bitwise7 class to compare signed right shift on positive and negative integers
Add a program that:
- Applies signed right shift (`>>`) to both positive and negative integers
- Demonstrates how sign extension affects the result of shifting negative numbers
- Includes a commented unsigned right shift (`>>>`) line for future comparison
- Helps visualize bitwise behavior using binary interpretation.1 parent 1b22595 commit 6080098
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
0 commit comments