The function ________ is used in C to allocate memory for an array of specified size dynamically.
- free
- malloc
- printf
- scanf
In C, the function 'malloc' is used to allocate memory for an array of specified size dynamically. 'malloc' stands for memory allocation.
Loading...
Related Quiz
- A ________ search works by repeatedly dividing the portion of the array that could contain the item until you've narrowed down the possible locations to just one.
- What term is used to describe the process of calling a function within itself?
- You are developing a contact management system where each contact can have multiple addresses (home, work, etc.). How can you efficiently represent this information using structures?
- You're developing a text editor and need to implement a search feature. Which function could be useful to check if a certain word exists in a text?
- Pointer arithmetic in C is based on ________, which means that the pointer is incremented or decremented by the size of the data type it points to.