Computer Science, asked by bhagyashree461, 17 days ago

what is local and global and local scope of function ? how to identify which function has local or global scope in function


12th cbse computer​

Answers

Answered by Simran200837
0

Answer:

A variable's scope is the range of the script where it is visible. Variables have either global or local scope. A global variable exists only once in a script, and is visible in every function. Modifications to it in one function are permanent and visible to all functions.

Answered by kavitha2057
0

Answer:

A variable's scope is the range of the script where it is visible. Variables have either global or local scope. A global variable exists only once in a script, and is visible in every function. Modifications to it in one function are permanent and visible to all functions.

Similar questions