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 1 of 3.
Chandrika said:
1 decade ago
malloc is used to assign the single block of memory dynamically.
calloc is used to assign the multiple block of memory dynamically at run time.
calloc is used to assign the multiple block of memory dynamically at run time.
(3)
Amit said:
10 years ago
A program is a soft code which makes any processor to perform some function, It provides instructions to the processor.
(2)
Jaffa said:
10 years ago
What is a program? why we want to use that?
(2)
Nithya said:
1 decade ago
To allocate memory with garbage value.
(2)
Swati said:
1 decade ago
What is memalloc?
(2)
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)
Charvi said:
4 years ago
malloc() and calloc() are library functions that dynamically allocate memory.
(1)
Raj said:
1 decade ago
malloc: Memory allocation function ptr.
calloc: Allocate space for an array.
realloc: Memory allocation that modifies the size of previously allocated space.
calloc: Allocate space for an array.
realloc: Memory allocation that modifies the size of previously allocated space.
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.
Siva said:
1 decade ago
Is any dealloc function in C?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers