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 C# Programming Java Programming
Microbiology Biochemistry Biotechnology Biochemical Engineering
Civil Engineering Mechanical Engineering Chemical Engineering 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 > True / False Questions - Discussion

2. 

malloc() allocates memory from the heap and not from the stack.

[A]. True[B]. False

Answer: Option D

Explanation:

No answer description available for this question.


Likita Shetty said: (Fri, Jan 7, 2011 09:14:04 AM)    
 
what is the difference between heap and stack .. i know stack works on the principle of last in first out and what about heap ?

Saurabh said: (Wed, Mar 16, 2011 01:53:37 AM)    
 
Heap area consist of hash codes .i.e. addreses while stack may or may not be.

Dev. said: (Tue, Apr 3, 2012 10:51:27 PM)    
 
malloc and calloc allocates memory in heap.

Purva said: (Sun, Apr 8, 2012 05:31:23 PM)    
 
Like stack is First in first out, how does heap work ?

Reena said: (Wed, Jun 20, 2012 12:51:33 PM)    
 
The main difference between stack and heap is, Stack is last in first out. But heap is not related to that that concept. Heap is related to dynamic memory allocation. Heap is the area where the elements are stored in a dma. All the malloc() , realloc() and calloc() are related to dynamic memory alloction concepts.

Vaishu said: (Fri, Mar 8, 2013 09:35:22 PM)    
 
malloc() is dynamic memory allocation. So it is stored in Heep memory.

Write your comments here:
Name *:     Email:


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

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