· Easier reuse of routines in other programs
· Routine can be included in a library
· Helps to make the program code more understandable
· Ensures that the routine is self-contained routine is independent of the rest of the program
· (Global variables use memory while a program is running) but local variables use memory for only part of the time a program is running
· reduces possibility of undesirable side effects
· Using global variables makes a program harder to debug
Comments
No comments have yet been made