The use of ________ allows for dynamic memory allocation for arrays in C.
- for loop
- getchar()
- malloc()
- sizeof()
Dynamic memory allocation in C is achieved using functions like malloc().
Loading...
Related Quiz
- What is the primary cause of memory leaks in a C program?
- What is the time complexity of the bubble sort algorithm in the best case?
- You are working on an application that processes large datasets. How can using pointers and arrays together optimize the application?
- What happens when realloc is called with a size parameter of zero?
- Which function is used to close a file that has been opened for reading or writing?