Can we allocate memory for an object dynamically?

154. Can we allocate memory for an object dynamically?

  1. Yes
  2. No

Answer: A) Yes

Explanation:

Yes, we can allocate memory for an object using "new" and malloc() in C++.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.