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 2 of 2.

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

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

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

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.

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

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

Vishak said:   1 decade ago
calloc expansion?

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

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.

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


Post your comments here:

Your comments will be displayed after verification.