69,322
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
int main()
{
int x=3;
int *px;
*px = x;
printf("%d\n",*px);
system("PAUSE");
return 0;
}
#include<stdio.h>
int main()
{
int x=3,y;
int *px;
*px = x;
printf("%d\n",*px);
system("PAUSE");
return 0;
}
*px = x;//你的意思是往PX所指向的变量赋值为x; 但是 PX并没有指向变量
*px = x;//指针没有初始化