pointer within a for loop scope problem - Visual C++ - Windows Tech
KTFung111 Thank you for reply. Great solution. And I found that the for loop scope is different than the normal scope. If i break it down like this. int* ptr; { // scope 1 int a = 0; ptr = &a; cout...