C++ Programming and Technical

How do I allocate / unallocate an array of things?

Read Solution (Total 0)

C++ Other Question

In p = new Fred(), does the Fred memory "leak" if the Fred constructor throws an exception?
A: No.
What if I forget the [] when deleteing array allocated via new T[n]?