#include <stdio.h>void main(){ int a = 0x12345678; int b = 0x567890AB; int c = 0x7890ABCD; char * p = (char*)&a; char * q = p + 2; int x = *(int*)q; printf("x=%X",x);}
面试题
最新推荐文章于 2024-08-29 19:27:14 发布
#include <stdio.h>void main(){ int a = 0x12345678; int b = 0x567890AB; int c = 0x7890ABCD; char * p = (char*)&a; char * q = p + 2; int x = *(int*)q; printf("x=%X",x);}