In the below program how to access global variable i?
you can do it. remove local variable i=20;
first of all this program gives compile time error.
you can access outer scope variable, with :: operator in case if both local and outer scope variables are having same name.
Back To Top