+ 1
Scope
I’m not clear what the scope is, could someone help me, thanks
3 Respuestas
+ 4
David Yan Scope of a variable means where it can be accessed
If we declare a variable in side a function then it can only be accessed from the function only.
If we declare variable outside all the function the it can be accessed anywhere from the program it is called global variable
+ 5
Yes its true what Bensen said. also to add, if you declare local and global variable with same name, the local variable is used over the variable with global scope.
+ 2
https://www.sololearn.com/post/985319/?ref=app
help me please see my post ,I want to make working scope.....