69,396
社区成员
发帖
与我相关
我的任务
分享
ptr.c:6:13: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast]
int *ptr2=(int *)((int )a+1);
^
1 warning generated.
chenhuimingdeMacBook-Pro:csdn Mch$ ./a.out
Segmentation fault: 11