Initial Values
Where can variable/values be located?
- In global space
- In global space inside an object/array
- On the stack in stack frames as parameters and locals
- On the stack inside an object/array
- On the heap
- On the heap inside an object/array
Initial Values
When the program begins, what can the initial values of those variables be (specifically before any assignment operation / value-initialization)?
- Get a default value (0? 1? 0.0? true? false? null?)
- Error if accessed
- Randome/undetermined/garbage value (whatever it is in the memory the last time it was used)