Computer Science, asked by akash701, 1 year ago

what is the use of new operator

Answers

Answered by Vaishnavi20042003
3
When new is used to allocate memory for a C++ class object the object's constructor is called after the memory is allocated .Use the delete operator to deallocate the memory allocated with the new operator .The following example allocates and then frees a two - dimensional arry of characters of size dim by 10.
hope it helps you

akash701: in java not c++
akash701: please give me the solution
akash701: yes
Answered by sneha413639
1

Answer:

YOUR ANSWER IS IN THE ATTACHMENT.

Attachments:
Similar questions