#include<stdio.h> int main() { unsigned int a = 5, b; printf("&a=%x\n &b=%x\n", &a, &b); b = (unsigned int)&a; printf("(unsigned int *)&b = %x\n", (unsigned int *)&b); printf("(unsigned int *)b = %x\n", (unsigned int *)b); printf("*(unsigned int *)b = %x\n", *(unsigned int *)b); return 0; }
关于指针的操作,明白的写出你的答案!
——回复可见内容——
&a=ffe93154 &b=ffe93150 (unsigned int *)&b = ffe93150 (unsigned int *)b = ffe93154 *(unsigned int *)b = 5