如题所述
#include<stdio.h>
void main() { unsigned int x,y; unsigned char *p;
scanf("%x",&x); y=x; p=(unsigned char *)&y; p++; *p=0; printf("%x\n",y);
}