잡담

[variables] static vs. heap vs. stack

tomato13 2013. 11. 13. 10:58

http://stackoverflow.com/questions/408670/stack-static-and-heap-in-c


static variable

lifetime = program runtime


heap variable

lifetime = defined by you (new to delete)


stack variable

lifetime = from declaration until scope is exited

'잡담' 카테고리의 다른 글

MVC Pattern  (0) 2013.12.23
on Sunday of November  (0) 2013.12.15
product and money  (0) 2013.09.18
32 bit vs. 64 bit architecture  (0) 2013.09.14
after watching a 임승수's 자본론 lecture  (0) 2013.09.12