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.

Abhishek Rai Sharma said:   1 decade ago
What is the difference between malloc() and calloc()?

Bhargavi said:   1 decade ago
The malloc() is used to assign the single block of memory at run time and the calloc() is used to assign the multiple blocks of memory at runtime.

Tulasi said:   1 decade ago
wat is ment by faralloc where it is used?

Vishak said:   1 decade ago
calloc expansion?

Mimi said:   1 decade ago
What is the differences between malloc and calloc?

Yuvapriya said:   1 decade ago
malloc() - allocating a block of memory dynamically and sets all the bits to zero.

Eg:

ptr = (cast-type*)malloc(byte_size);


calloc() - allocating multiple block of memory dynamically.

Eg:

ptr=(cast-type*)calloc(n, ele_size);
n-->no of blocks

Riend said:   1 decade ago
malloc will return an uninitialized chunk of memory for you to use.
calloc ( clear alloc ) will attempt to initialize that chunk of memory to all bits zero.

Thangaraj said:   1 decade ago
What is mean by memalloc() and faralloc()?

Suvathi said:   1 decade ago
What is a malloc, memalloc and alloc ?

Asmita said:   1 decade ago
What is alloc() , memalloc() and faralloc() ?


Post your comments here:

Your comments will be displayed after verification.