Questions about destroying the dynamic arrays and binarySearch function

Dec 20, 2012 at 7:02am
Thank You For Helping
Last edited on Dec 20, 2012 at 4:09pm
Dec 20, 2012 at 10:13am
1) Yes, your delete statements will free up the memory used for the entire array.

2) Have you tried stepping through the code with a debugger, to see what it's doing?
Dec 20, 2012 at 10:22am
I do have delete [] sorted in my program, does it mean I destroy the dynamic arrays?
Yes


I want to
know what's wrong with my binarySearch function.
on line 96: replace type with int
Topic archived. No new replies allowed.