two's complement,2的补码

时间:2023-03-09 00:51:41
two's complement,2的补码

Let's start with one question.

Q: What's the output of below program?

#include <stdio.h>

void main(void)
{
char a = -1;
printf("a = %d\n", (unsigned char)a);
}

Hope the rest of this article can help you answer this question.

相关文章