Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要一点帮助
我使用此代码
int *p; long b; puts("enter address:"); scanf("%l",&b); p=b; printf("%d\n",*p);
问题是 p 是一个指针,b 很长,我怎样才能把输入它的地址放在指针 p 中?
并感谢所有人;)
p = (int *)b;
请注意段错误!