C Programming - Memory Allocation - Discussion
Discussion Forum : Memory Allocation - General Questions (Q.No. 4)
4.
Specify the 2 library functions to dynamically allocate memory?
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.
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers