i don’t get how you get a complement of a number at all. ~12 returns -13, why? 12 in binary is 1100, then 0011, which is 3?
maybe this is related to the fact that there are 8 digits, then why is a binary of the numbers 8 digits?
Type your question above this line.
Course: https://www.educative.io/collection/10370001/4974430444847104
Lesson: https://www.educative.io/collection/page/10370001/4974430444847104/4679767066411008