IndiaBIX.com
Arithmetic Aptitude Data Interpretation
Logical Reasoning Verbal Reasoning Non Verbal Reasoning
General Knowledge
Sudoku Number puzzles Missing letters puzzles Logical puzzles Playing cards puzzles Clock puzzles
C Programming C# Programming Java Programming
Networking Database Questions Computer Science Basic Electronics Digital Electronics Electronic Devices Circuit Simulation Electrical Enigneering Engineering Mechanics Technical Drawing
Placement Papers Group Disucssion HR Interview Technical Interview Body Language
Aptitude Test Verbal Ability Test Verbal Reasoning Test Logical Reasoning Test C Programming Test Java Programming Test Data Interpretation Test General Knowledge Test
Data Structures Operating Systems Networking DATABASE Database Basics SQL Server Basics SQL Server Advanced SQL Server 2008 JAVA Core Java Java Basics Advanced Java UNIX Unix File Management Unix Memory Management Unix Process Managemnt C Interview Questions The C Language Basics .NET Interview Questions .NET Framework ADO.NET ASP.NET Software Testing

C Programming - Memory Allocation - Discussion

@ : Home > C Programming > Memory Allocation > General Questions - Discussion

Read more:

"The secret to creativity is knowing how to hide your sources."
- Albert Einstein
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: (Wed, Sep 1, 2010 02:37:10 PM)    
 
What is the difference between malloc () and calloc () ?.

Bhargavi said: (Sun, Oct 3, 2010 08:30:45 AM)    
 
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: (Mon, Dec 27, 2010 02:04:23 AM)    
 
wat is ment by faralloc where it is used?

Vishak said: (Wed, Jan 26, 2011 04:50:59 AM)    
 
calloc expansion?

Mimi said: (Tue, Jul 19, 2011 10:04:52 AM)    
 
What is the differences between malloc and calloc?

Yuvapriya said: (Wed, Sep 21, 2011 11:54:28 PM)    
 
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: (Thu, Sep 22, 2011 12:47:56 AM)    
 
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.

Write your comments here:
Name *:     Email:


© 2008-2011 by IndiaBIX™ Technologies. All Rights Reserved | Copyright | Terms of Use & Privacy Policy

Advertise     Contact us: info@indiabix.com     Follow us on twitter!