answersLogoWhite

0

delete

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the operator is used to allocate the memory in c plus plus?

calloc operator,malloc operator


How can delete operator used to prevent memory leak?

ss


Difference between new operator and operator new?

new operator allows to allocate a memory from the heap..... so a new instance of a class is created.......... but operator new is used to overload the (new) operator........ juast like overloading of other operators


What is the use of new operator?

A new operater is used to allocating a memory space for a particular object.


Which is the unary operator used to dereference a pointer and return the value stored in it?

The asterisk (*) operator dereferences a pointer and returns the value stored in the memory pointed to by the pointer.


What is the purpose and functionality of the address operator in C?

The address operator in C is denoted by the symbol "" and is used to retrieve the memory address of a variable. This allows programmers to access and manipulate the memory location of a variable directly, enabling more efficient and precise control over memory management in their programs.


Why are you used new operator in main method in java?

new is used for memory allocation in java which on later automatically deallocated by garbage collector.


What are the popular tools used to detect memory leaks in c plus plus?

See related links, below.


What function is used to release the memory on heap?

The free() function releases memory obtained with the malloc() family of functions. The delete and delete [] operators release memory obtained with the new operator. Note: realloc() can allocate and free memories as well as reallocate.


What are the disadvantage of operator overloading?

The only disadvantage of operator overloading is when it is used non-intuitively. All operators must behave with predictable results, thus it makes no sense to implement the plus (+) operator so that it behaves like a subtract (-) operator, or a multiply (*) operator, or indeed anything other than the intuitive sum of two objects.


I need to know how much money I should pay someone to mow my yard?

depending on the value of the equipment,,,,a good guideline is 1 % of equipment value per hour plus operator wages which increase with value of equipment used. Example $5,000 tractor = $50/hour plus$10/hour operator wages or $50 push mower $.50/hour plus $9.00 hour operator


What are the advantages of the new operator?

The new operator in C++ works in a similar manner to malloc in C, allocating memory from the heap (the free store). However, unlike malloc which returns a void* pointer to uninitialised memory, the new operator returns a pointer of the given type and invokes the appropriate constructor for that type. Moreover, every class of object can overload its new operator to allow construction within memory that has been allocated in advance. That memory is typically allocated through a resource handle (known as an allocator), however we can also override the global new operator if we need to provide our own memory management. We can still use malloc in C++, however it has no advantages over the new operator and is best avoided in the interests of consistency and, more importantly, type safety. In practice we rarely use the new operator unless we are actually designing our own resource handles or low-level memory allocators. The standard library already provides highly efficient resource handles for the vast majority of our everyday needs, so it is rarely necessary to design our own. Nevertheless, the facility exists for those (very) rare occasions where we really do require "raw" memory.