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:

"We cannot solve our problems with the same thinking we used when we created them."
- Albert Einstein
2. 

What function should be used to free the memory allocated by calloc() ?

[A]. dealloc();[B]. malloc(variable_name, 0)
[C]. free();[D]. memalloc(variable_name, 0)

Answer: Option B

Explanation:

No answer description available for this question.


Wahid Sayed said: (Wed, Oct 20, 2010 01:02:58 PM)    
 
Why is it free() ?

Can anyone explain me.

Vamshikrishna Adepu said: (Sat, Nov 6, 2010 12:29:58 AM)    
 
We doesn't functions like dealloc() in "C" and the remaining options are to allocate memory so may the answer is free().

Rahul said: (Fri, Nov 12, 2010 01:55:30 AM)    
 
There are only 3 memory allocation functions in C calloc(),malloc() and free(). free is to free that allocated space

Anil Kumar said: (Sat, May 7, 2011 08:12:16 AM)    
 
free() is one of the predefined function its free memory ...
only one function is there in c language to free memory....

Hari Naidu said: (Sun, Jun 19, 2011 12:16:54 PM)    
 
free() function is used to remove the allocated memory.

Venkat said: (Sat, Jul 30, 2011 08:18:23 PM)    
 
Mainly free() function is used for allocating free memory for malloc() and calloc().

Amrendra said: (Tue, Aug 16, 2011 08:05:35 PM)    
 
The free(var-name) is only function in c to deallocate memory.

Pokar Sanjay said: (Sat, Oct 8, 2011 04:50:44 PM)    
 
How is different between malloc() and calloc() what is function of both? How it work?

Krishna said: (Tue, Nov 29, 2011 08:20:33 PM)    
 
Both allocate storage memory but the difference is malloc process single argument so just specify storage space while calloc process double argument so specify no. Of variable and space needed for that variable.

Sri said: (Tue, Dec 6, 2011 01:38:52 PM)    
 
What are the functions of malloc and calloc?

Lijina said: (Sat, Jan 28, 2012 10:52:17 AM)    
 
malloc() and calloc() are used to allocate space in memory but one difference is there allocating methods.

malloc() : malloc(int) only passing one arguments int allocates 2 bytes.

calloc() : calloc(int,5) passing two arguments int allocates 2 bytes, also 5 times 2 bytes will allocates.

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!