Computer Science, asked by sowjanya64, 1 year ago

what exactly is a 'variable scope ','local variable ' and ' global variable?

Answers

Answered by Anonymous
1

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.

Answered by Anonymous
3

┏━━━━•❅•°•❈ - •°•❅•━━━━┓

Heya here's your answer mate

┗━━━━•❅•°•❈ - •°•❅•━━━━┛

Variable✍

→ a variable is a named location in the memory which stores value temporarily. variables are also known as identifiers.

✰Hope it helps❢❢

┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅

Similar questions