Segmentation fault: but why?

前端 未结 0 1087
一向
一向 2021-01-24 15:47
#include 
int main()
{
 int* ptr;
 *ptr = 5;
 printf("%d", &ptr);
 return 0;
} 

This was asked in a coding interview, what

相关标签:
回答
  • 消灭零回复
提交回复
热议问题