Please enable JavaScript.
Coggle requires JavaScript to display documents.
(procedure and function, parameters, variables) - Coggle Diagram
-
parameters
passing
value
parameters are passed by value when a parameter is needed in a subroutine but where the value wont change in the subroutine. the subroutine will pass a copy of the original parameter, so the original value will stay the same
reference
parameters are passed by value when a parameter is needed in a subroutine and its value will be going to change in the subroutine when passed in. any change in that subroutine will result in the change of that original value
-
-
-
variables
local
these are variables which exist within one function, subroutine or procedure
global
these are created when the subroutine is called upon and will be destroyed when the subroutine id destroyed