STATIC MEMORY ALLOCATION | DYNAMIC MEMORY ALLOCATION |
Memory is allocated before the execution of the program begins. | Memory is allocated during the execution of the program. |
Implemented using stacks and heaps. | Implemented using data segments. |
Pointer is needed to accessing variables. | No need of Dynamically allocated pointers. |
Faster execution than Dynamic. | Slower execution than static. |
More memory Space required. | Less Memory space required. |
Thursday, July 4, 2013
Difference Between Static Memory and Dynamic
Labels:
Data Structure
Location:
Patna, Bihar, India
Subscribe to:
Post Comments (Atom)
This comment has been removed by a blog administrator.
ReplyDeleteplz tell me the right one
Deletewhat? this is right. Why did you say its wrong?
DeleteNo memory allocated at the compile time. But the memory is know n at the compile time in static memory allocation
DeleteIT S RIGHT?
ReplyDeletetq
ReplyDeletesahi hai
ReplyDeletewrong hai sab...
ReplyDeleteMu mai le na phir bhosdike
DeleteWhich one is wrong tell me...
ReplyDeletein static implementation is done by data segment
ReplyDeletein dynamic implementation is done by stack and heap
abe jab nahi aata to wrong kyu post karte ho
ReplyDeletewrong point 2-3
ReplyDeleteplz make correct 1.
wrong point 2-3
ReplyDeleteplz make correct 1.
Shyam prakash chutiya hai
ReplyDeletenice article thanks to sharing with us. it is useful.
ReplyDeletehttp://weballigator.ga/basic-c-language/
thanks
ReplyDeletevery useful
It was very useful!!
ReplyDeleteThanks!!