Hey guys, Purely to help me debug my code i wondered if i could get some help. I have a function that returns void and in no way accesses memory. However, upon leaving that function i get a segmentation fault. Im not using pointers, not in a loop. The function simply copies data from one array to another and then manipulates that data. So why might i get such an error upon leaving the function and not during?

If putting up the code helps then request it, but really I just want to no why this may happen.