syntax to allocate memory in c++
Answers
Answered by
0
new operator
1. Syntax to use new operator: To allocate memory of any data type, the syntax is: pointer-variable = new data-type; ...
2. Initialize memory: We can also initialize the memory using new operator: ...
3. Allocate block of memory: new operator is also used to allocate a block(an array) of memory of type data-type.
Similar questions