C Programming - Memory Allocation - Discussion

4. 

Specify the 2 library functions to dynamically allocate memory?

[A]. malloc() and memalloc()
[B]. alloc() and memalloc()
[C]. malloc() and calloc()
[D]. memalloc() and faralloc()

Answer: Option C

Explanation:

No answer description available for this question.

Abhishek Rai Sharma said: (Sep 1, 2010)  
What is the difference between malloc () and calloc () ?.

Bhargavi said: (Oct 3, 2010)  
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: (Dec 27, 2010)  
wat is ment by faralloc where it is used?

Vishak said: (Jan 26, 2011)  
calloc expansion?

Mimi said: (Jul 19, 2011)  
What is the differences between malloc and calloc?

Yuvapriya said: (Sep 21, 2011)  
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: (Sep 22, 2011)  
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: (Apr 21, 2012)  
What is mean by memalloc() and faralloc()?

Suvathi said: (Jul 4, 2012)  
What is a malloc, memalloc and alloc ?

Asmita said: (Jul 6, 2012)  
What is alloc() , memalloc() and faralloc() ?

Soundarya Kumari .B said: (Oct 3, 2012)  
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.

Raj said: (Dec 30, 2012)  
malloc: Memory allocation function ptr.

calloc: Allocate space for an array.

realloc: Memory allocation that modifies the size of previously allocated space.

C Budda Reddy said: (Feb 25, 2013)  
Memory is allocated for the functions and its variables.

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

Siva said: (Sep 4, 2013)  
Is any dealloc function in C?

Swati said: (Jul 2, 2014)  
What is memalloc?

Nithya said: (May 20, 2015)  
To allocate memory with garbage value.

Chandrika said: (Jan 22, 2016)  
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.

Jaffa said: (Aug 18, 2016)  
What is a program? why we want to use that?

Amit said: (Oct 2, 2016)  
A program is a soft code which makes any processor to perform some function, It provides instructions to the processor.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.