Computer Science, asked by ritukala1011, 1 year ago

Distinguish between local variable and global variable

Answers

Answered by komalDeshmukh
4

Explanation:

A LOCAL VARIABLE is a variable which is either a variable declared within the function or is an argument passed to a function.

A GLOBAL VARIABLE is a variable with global scope, meaning that it is visible throughout the program, unless shadowed.

I think it will help you...

Answered by 123456558
1

Answer:

A LOCAL VARIABLE is a variable which is either a variable declared within the function or is an argument passed to a function.

A GLOBAL VARIABLE is a variable with global scope, meaning that it is visible throughout the program, unless shadowed.

Explanation:

Similar questions