Static variable: Difference between revisions

Content deleted Content added
Not all objects are allocated in the heap.
GreenC bot (talk | contribs)
 
Line 11:
| title = What is static memory allocation and dynamic memory allocation?
| quote = The compiler allocates required memory space for a declared variable. By using the addressof operator, the reserved address is obtained and this address may be assigned to a pointer variable. Since most of the declared variables have static memory, this way of assigning pointer value to a pointer variable is known as static memory allocation. Memory is assigned during compilation time.
| url = http://www.merithub.com/q/58-static-memory-allocation-dynamic-memory-allocation.aspx}}{{Dead| linkarchive-url = https://web.archive.org/web/20100611071852/http://www.merithub.com/q/58-static-memory-allocation-dynamic-memory-allocation.aspx| url-status = dead| archive-date = June 202311, 2010}}</ref>
 
==History==