Question

describe one common error in using dynamic memory allocation.

describe one common error in using dynamic memory allocation.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

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

Add a comment
Know the answer?
Add Answer to:
describe one common error in using dynamic memory allocation.
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT