0

Is it possible to use a=2 -->a in any way inside the block ?

https://code.sololearn.com/c85856d2XVAl/?ref=app

7th Aug 2019, 3:38 PM
abishek sriram
abishek sriram - avatar
6 Réponses
+ 4
Nope.. There is no way to access a=2 in that inner block bcoz once a local variable with same name is initialized it is not possible to access the variable which is declared outside..
7th Aug 2019, 3:45 PM
Alaska
Alaska - avatar
+ 2
Ok thank you and with scope resolution operator we can access only global variable ?we can't access any other variable?
7th Aug 2019, 3:47 PM
abishek sriram
abishek sriram - avatar
+ 1
Yeah..scope resolution operator can only access global variable..
7th Aug 2019, 3:51 PM
Alaska
Alaska - avatar
+ 1
~ swim ~ What is a namespace??
7th Aug 2019, 4:47 PM
Alaska
Alaska - avatar