Computer Science, asked by Samy13121, 6 months ago

What do you understand by local and global scope of variables. How can you access a global variable inside the function if function has a variable with the same name.

Answers

Answered by shewalea689
0

Explanation:

Global variables are declared outside any function, and they can be accessed (used) on any function in the program. Local variables are declared inside a function, and can be used only inside that function. It is possible to have local variables with the same name in different functions

Similar questions