I have a segmentation fault in the code below, but after I changed it to pointer to pointer, it is fine. Could anybody give me any reason?
void memory(int *
you dont need to use a pointer to pointer but a referenced pointer ie a * & not just *