Understanding Variable scope in C++
Understanding Variable scope is very important because it can sometime leads us to unwanted value changing or hazards while coding. Like, we have declared a variable but still its showing error while compiling or running. Look at the following code, for(int x=0;x<5;x++) //For Loop 01 { cout<<“Inside For Loop 01”; } cout<<x<<” times”; … Read more