请参阅以下C代码.
#include <stdio.h>
int main(void)
{
char c1 = 3000;
char c2 = 250;
printf("%d\n",c1);
printf("%d\n",c2);
}
Run Code Online (Sandbox Code Playgroud)
上面代码的输出是
-72
-6
Run Code Online (Sandbox Code Playgroud)
请解释此处应用的整数到字符转换规则,因为3000和250都在char范围之外(-128到127).
c ×1