Sub programs 2

?
  • Created by: Tomiwaq
  • Created on: 07-05-19 19:21
View mindmap
  • Sub programs
    • Variables - local or global
      • All variables have a scope which tell the parts of the program the variable can be used in
      • Local variables
        • Only be used within the structure they're declared in
      • Global variables
        • Can be used anytime after their declaration
      • Variables declared inside a sub program are local variables
      • Variables in the main body can be used as global variables
      • Advantage of local variable is that their scope only extends to the sub program

Comments

No comments have yet been made

Similar Computing resources:

See all Computing resources »See all Programming resources »