#include"stdio.h"
main()
{
unsigned char uchx,*puchx;
char chx;
int x,y;
chx=-4;
uchx=(unsigned char)chx;
puchx=(unsigned char *)&chx;
x=chx;
y=uchx;
printf("puchx=[%d],uchx=[%d],chx=[%d]\n",*puchx,uchx,chx);
printf("x=[%d] y=[%d]\n",x,y);
getch();
}
答案是:252 252 -4
-4 252