13.11.2009, 21:33
Quote:
Originally Posted by [NaB
Hiitch - No srsly, Im a NaB ! ]
so basically, static is creating a var that you can't edit? (Confused) |
EDIT: Sorry, my mistake! I was confused.
Static variables are variables that are executed at compile-time, unlike the normal variables that are executed at run time.
New variables allocate the memory dynamically, Dynamic Memory Allocation definition
Static variables allocate the memory statically, Static Memory Allocation definition