// S8ToU8.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
signed char temp=-40;
char temp2;
unsigned char temp3;
temp2=temp;
temp3=temp;
printf("temp2= %d temp3= %d \r\n",temp2,temp3);
return 0;
}
显示如下:
temp2= -40 temp3= 216