38 Computer -- Modular Programming

Mention the difference between local variable and global variable.

Mention the difference between local variable and global variable.

Local variable Global variable
A variable which is defined in a module and is not accessible to any other modules is known as local variable.
A variable which is defined in main module and can be accessed from any procedure of the program is known as global variable.

More questions on Modular Programming

Close Open App