Talk:Memory allocation: Difference between revisions

From Rosetta Code
Content added Content deleted
(int ints[100] is not explicit "stack" (likely) allocation... should be explained?)
 
No edit summary
Line 1: Line 1:
About langs like C, the task requires explanation about the fact that local variables are "allocated" on the stack (likely), so that a way of "allocating" 100 integers is simply <code>int ints[100]</code> ... even though this is not an ''explicit allocation''? --[[User:ShinTakezou|ShinTakezou]] 16:51, 26 May 2009 (UTC)
About langs like C, the task requires explanation about the fact that local variables are "allocated" on the stack (likely), so that a way of "allocating" 100 integers is simply <code>int ints[100]</code> ... even though this is not an ''explicit allocation''? --[[User:ShinTakezou|ShinTakezou]] 16:51, 26 May 2009 (UTC)
: Yes, please do explain the difference in lifetime and syntax of "auto" vs. malloc() allocations. --[[User:IanOsgood|IanOsgood]] 16:53, 26 May 2009 (UTC)

Revision as of 16:53, 26 May 2009

About langs like C, the task requires explanation about the fact that local variables are "allocated" on the stack (likely), so that a way of "allocating" 100 integers is simply int ints[100] ... even though this is not an explicit allocation? --ShinTakezou 16:51, 26 May 2009 (UTC)

Yes, please do explain the difference in lifetime and syntax of "auto" vs. malloc() allocations. --IanOsgood 16:53, 26 May 2009 (UTC)