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:
20 comments Page 1 of 2.

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

Amit said:   8 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:   8 years ago
What is a program? why we want to use that?
(1)

Chandrika said:   9 years 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.
(1)

Nithya said:   10 years 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.

Soundarya kumari .B said:   1 decade ago
malloc(): Allocates the specified number of bytes
calloc(): Allocates the specified number of bytes and initializes them to zero these are present in the standard library.


Post your comments here:

Your comments will be displayed after verification.