我们如何确定导致分段错误的代码中的错误在哪里?
在编写了一些代码后,为了确定我在哪里有分段错误,我的编译器(gcc)能告诉我程序中的错误位置吗?
gcc
c c++ debugging segmentation-fault
c ×1
c++ ×1
debugging ×1
segmentation-fault ×1