Computer Science, asked by sabir562, 8 months ago

What are Local Variables and Global Variables? Illustrate with example.

Answers

Answered by Anonymous
3

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. ... The scope of a variable refers to where is a variable visible or accesible.

Similar questions