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

describe one common error in using dynamic memory allocation.SolutionThe most common error while using dynamic memory allocation is deferencing the pointer with

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site