Global & Local Variables
Variable - a data item that may take on more than one value during the runtime of a program.
Local Variable - this type of variable can only be read or modified by the current subroutine itself, this is why a variable can be used in the main program or a different subroutine without an effect.
Global Variable - This type of variable is available for any part of the code to read and modify.
Global Variable - This type of variable is available for any part of the code to read and modify.
Comments
Post a Comment