Mamory allocation n deallocation

As in C,malloc(allocates the specified number of bytes),calloc( allocates the specified number of bytes and initializes them to zero),realloc((Resize to the specified block of memory,if needed)  and free(releases the specified block of memory back to the system) are used for mamory allocation and deallocation.
In c++ and java  new operator is used to allocate memory,it atomatically take size of datatype which are going to be create,and initilize that with the help of constructor. For deallocating the memory deleate operator is used,it detroys the memory with the help of decunstructor.

Counters