If we keep calling the function malloc() in our code, but never call function free(), what happens to memory in a running program?
Added by Sue K.
Step 1
Step 1: When the function `malloc()` is called, it allocates a specified amount of memory from the heap and returns a pointer to the beginning of that allocated memory block. Show more…
Show all steps
Your feedback will help us improve your experience
Pritesh Ranjan and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
What is memory leak ? In C language
Pritesh R.
Akash M.
Hoan N.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD