cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Questions about destroying the dynamic a
Questions about destroying the dynamic arrays and binarySearch function
Dec 20, 2012 at 7:02am UTC
Maria Ramos
(10)
Thank You For Helping
Last edited on
Dec 20, 2012 at 4:09pm UTC
Dec 20, 2012 at 10:13am UTC
MikeyBoy
(5631)
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 UTC
coder777
(8444)
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.