Questions about destroying the dynamic arrays and binarySearch function

Thank You For Helping
Last edited on
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?
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.