C Programming - Memory Allocation - Discussion

Discussion Forum : Memory Allocation - General Questions (Q.No. 4)
4.
Specify the 2 library functions to dynamically allocate memory?
malloc() and memalloc()
alloc() and memalloc()
malloc() and calloc()
memalloc() and faralloc()
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
22 comments Page 3 of 3.

Amrutha K S said:   4 months ago
Because stdlib.h provides four functions that are malloc(), calloc(), realloc() and free(), in that Allocate block of memory are malloc(), calloc(), calloc() and Deallocate block of memory free().
(1)

Swasthik M S said:   2 weeks ago
@All.

malloc() and calloc() are the two standard C library functions used for dynamic memory allocation, where malloc() allocates uninitialized memory and calloc() allocates memory initialized to zero.


Post your comments here:

Your comments will be displayed after verification.