Advertisements
Advertisements
Question
Keyword new is used for ______.
Options
Rotational memory allocation
Dynamic memory allocation
False memory allocation
Random memory allocation
MCQ
Fill in the Blanks
Advertisements
Solution
Keyword new is used for dynamic memory allocation.
Explanation:
- The keyword new is used to allocate memory dynamically during program execution.
- It creates objects or variables in memory and returns their reference/address for use.
shaalaa.com
Is there an error in this question or solution?
