What is binding and when does it occur?
Answer:
Binding is the act of associating a reference with the variable that it aliases.
Binding of reference variables occurs when they are declared. They must be declared
with an initialization statement. Reference parameters are bound when the function is
called. References may also be used for the return type of functions. In this case the
return statement does the binding.
Binding of reference variables occurs when they are declared. They must be declared
with an initialization statement. Reference parameters are bound when the function is
called. References may also be used for the return type of functions. In this case the
return statement does the binding.
No comments:
Post a Comment