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:
21 comments Page 1 of 3.

Amrutha K S said:   2 weeks 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().

Charvi said:   4 years ago
malloc() and calloc() are library functions that dynamically allocate memory.
(1)

Amit said:   9 years ago
A program is a soft code which makes any processor to perform some function, It provides instructions to the processor.
(1)

Jaffa said:   10 years ago
What is a program? why we want to use that?
(1)

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.
(2)

Nithya said:   1 decade ago
To allocate memory with garbage value.
(1)

Swati said:   1 decade ago
What is memalloc?
(1)

Siva said:   1 decade ago
Is any dealloc function in C?

C budda reddy said:   1 decade ago
Memory is allocated for the functions and its variables.

Dealloc is delete the after complete operations memory resource is deallocated.

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.


Post your comments here:

Your comments will be displayed after verification.