Automaticly filling bits in c with f while doing ">>" operation
I am having some fun with bit operations in C and i don’t get one thing. If i have char b = 0x6c, and then i have short y = 0x0000, and I do y=b; y = y >> 12;, why does it fill my y with ‘f’? #include <stdio.h> #include <stdlib.h> int main() {… Read More Automaticly filling bits in c with f while doing ">>" operation