+ 1
Can anyone explain the local or global scope ?
If i define the variable to first function and call them to another second function. Is this program can run or not?
3 Answers
+ 17
In short, local variables are declared inside a function and can be accessed within that function only. And global variables are declared outside all functions so that each function can access it.
See the following threads for details :
https://www.sololearn.com/discuss/232350/?ref=app
https://www.sololearn.com/discuss/102291/?ref=app
+ 2
Ok.... I got it..
Thanku...đ
+ 1
nahi bataunga