C++ Programming and Technical

Can I drop the [] when deleteing array of some built-in type (char, int, etc)?

Read Solution (Total 0)

C++ Other Question

What if I forget the [] when deleteing array allocated via new T[n]? After p = new Fred[n], how does the compiler know there are n objects to be destructed
during delete[] p?