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 - Structures, Unions, Enums - Discussion

@ : Home > C Programming > Structures, Unions, Enums > General Questions - Discussion

1. 

How will you free the allocated memory ?

[A]. remove(var-name);[B]. free(var-name);
[C]. delete(var-name);[D]. dalloc(var-name);

Answer: Option A

Explanation:

No answer description available for this question.


Sathish said: (Mon, Sep 27, 2010 06:52:16 AM)    
 
free(referred location name);

free() - built in function to free or clear the memory space. If you use free, the referred memory location released for the future use or other operations.

M.Suman said: (Thu, Oct 7, 2010 12:53:50 AM)    
 
I have one doubt.

If delete the variable means that memory also free ?

Prithvi said: (Wed, Dec 22, 2010 10:18:19 AM)    
 
Itz correct..

Tejas said: (Thu, Jan 20, 2011 08:30:28 AM)    
 
free(referred location name);

free() - built in function to free or clear the memory space. If you use free, the referred memory location released for the future use or other operations.

Raki said: (Fri, Jan 21, 2011 10:41:13 AM)    
 
Yes free is the in built functio in "c" language.

Arun said: (Fri, Jan 21, 2011 11:13:58 AM)    
 
If we set the memory free...Will the variable get deleted ?

Karim said: (Tue, Feb 8, 2011 09:33:28 AM)    
 
Clears the memory, correct.

free(void * block)

Free is used to deallocate the memory allocated by malloc, calloc.

Ashok said: (Wed, Jun 1, 2011 06:15:26 AM)    
 
What is mean by malloc and calloc?

Prits said: (Tue, Jun 14, 2011 02:38:13 AM)    
 
May I know then,

What is the difference between "free(var-name)" and "dalloc(var-name)"?

Yalamanda said: (Thu, Jun 30, 2011 10:36:48 PM)    
 
free(); is the key word in stdio.h library which free the allocated by the variable given as argument.

Raji said: (Wed, Jul 13, 2011 12:43:46 AM)    
 
What is the difference between free(var-name) & dalloc(var-name)?

Mareppa said: (Sun, Aug 14, 2011 06:29:45 AM)    
 
What is the difference between free and delete ?

Vishal said: (Mon, Aug 29, 2011 01:39:56 AM)    
 
The heap is reason of free because of that our program can use memory via c's DYNAMIC ALLOCATION function.

But in delete() function asks the user to specify the index of the address that to be deleted.

Vishal said: (Mon, Aug 29, 2011 01:58:35 AM)    
 
We used the free () function to free dynamically allocated memory. Such as malloc () and alloc ().

And we use the delete for destroy an object.

Or another way we can say that for explicitly destroyed we used delet.

Vicky Mehta said: (Thu, Oct 13, 2011 06:32:09 PM)    
 
If delete the variable means that memory also free ?

Hari said: (Thu, Dec 8, 2011 10:59:06 AM)    
 
Its just free the memory for the current use.

Safi said: (Fri, Dec 30, 2011 08:38:23 PM)    
 
Delete means increase space but at that deleted location take over by next allocated data. Hence that memory address is not free permanently.

While free means at that location space for another data entry. This location is not fill without user sent data by taking that reference.

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!