#include <stdio.h>//int 占用四字节的32位机#define LOW16 0xFFFFint main(){ unsigned int A=0,B=0,C=0,t=0; char hex[33]={0}; printf("Please input two unsigned int A and B: "); scanf("%u%u",&A,&B); C=A & LOW16; C<<=16; C |= (B>>16) & LOW16; printf("A=0x%08x\n",A); printf("B=0x%08x\n",B); printf("C=0x%08x\n",C); return 0;}/*结果:Please input two unsigned int A and B: 655 455666A=0x0000028fB=0x0006f3f2C=0x028f0006Press any key to continue*/