Two's Complement

PHOTO EMBED

Thu Sep 01 2022 17:47:16 GMT+0000 (UTC)

Saved by @Adam_Al_Rahman #c

#include <stdio.h>

int main() {
    int myInt;
    myInt = 0xFFFFFFE2;
    printf("%d\n",myInt);

    return 0;
}
content_copyCOPY

Converted back into hex, this is 0xFFFFFFE2. And indeed, suppose you have this code

https://www.cs.cornell.edu/~tomf/notes/cps104/twoscomp.html