IAT 167 Lecture 2: IAT167-Week 2 Lecture 2.docx

89 views2 pages

Document Summary

Setting a placeholder value before the variable is used. Literals are values that appear in your code. Compiler directive to not allow values to be changed programmatically except during initialization. Area of code where a variable can be accessed by a lexical reference. They do not have block-level scope like many other common languages. This means that any variable defined anywhere in a function is available everywhere in that function. The compiler moves all variable declarations to the top of the function so variables are available before they are declared in code (use of this would be bad practice) Do not leave unspecified (internal is the default) Function properties do not need access control specification. A copy of the parameter is passed in, changes made to the variable in the function do not adjust the original. A reference to the original variable is passed in, changes made in the function are reflected in the original.