Local variables
The body block of a function is just like the main program in that any instructions can beused therein. If new variables are needed within the function's body block to perform the
function's task, they may be declared. Variables declared inside a function's body block are
called local variables. Their scopes follow the ordinary scoping rules of all variables. Local
variables pass out of scope when their declaring functions end.
No comments:
Post a Comment