[Solved] Learning C++ pointer runs into core dump with following code, I really don’t why?
Change the following statements int ** dp = new int *; *dp = array; Or even you could write one statement instead of the two above int ** dp = new int *( array ); Also do not forget to free the allocated memory delete dp; delete []array; As for your code then you are … Read more