describe one common error in using dynamic memory allocation
describe one common error in using dynamic memory allocation.
Solution
The most common error while using dynamic memory allocation is deferencing the pointer without verifying the pointer without verifying whether allocations is successful or not.And usually dynamic allocation returns null in case of insufficient memory and it will return null pointer exception and it points to no where hence deferencing the pointer can result in termination of program
