void test2 () { for ( Int_t i = 0 ; i < 3 ; i++ ) { Int_t x [ 3 ] = {0} ; cout << "index of initialized array : "<< i << "; content --> " << x [ i ] << endl ; x [ i ] = 7 ; cout << " misc content --> " << x [ i ] << endl ; } cout << endl ; for ( Int_t j = 0 ; j < 3 ; j++ ) { cout << "Content of array seen otside the scope of declaration: " << x [ j ] << endl ; } }