CS 3304: Comparative Languages
Names and Binding
[
Course Documents
] : [
Names and Binding
]
Previous
Contents
Next
Keyword Index
Variable Initialization
The binding of a variable to a value at the time it is bound to storage is called
initialization
Often done on the declaration statement
An Ada example:
sum : Float := 0.0;
Can be static or dynamic (depending on when storage is bound)
Typically once for static variables, once per allocation for non-static variables