Iteration 1: With k = 0x7fff16363430 (this k[] will become invalid outside the scope of this for() loop)
Data to store = 1, into k[0] = 0xacf9a0 (space created by 'new int;')
Data to store = 2, into k[1] = 0xacf9c0 (space created by 'new int;')
Data to store = 3, into k[2] = 0xacf9e0 (space created by 'new int;')
Data to store = 4, into k[3] = 0xacfa00 (space created by 'new int;')
Data to store = 5, into k[4] = 0xacfa20 (space created by 'new int;')
Iteration 2: With k = 0x7fff16363430 (this k[] will become invalid outside the scope of this for() loop)
Data to store = 11, into k[0] = 0xacfa40 (space created by 'new int;')
Data to store = 12, into k[1] = 0xacfa60 (space created by 'new int;')
Data to store = 13, into k[2] = 0xacfa80 (space created by 'new int;')
Data to store = 14, into k[3] = 0xacfaa0 (space created by 'new int;')
Data to store = 15, into k[4] = 0xacfac0 (space created by 'new int;')
Iteration 3: With k = 0x7fff16363430 (this k[] will become invalid outside the scope of this for() loop)
Data to store = 21, into k[0] = 0xacfae0 (space created by 'new int;')
Data to store = 22, into k[1] = 0xacfb00 (space created by 'new int;')
Data to store = 23, into k[2] = 0xacfb20 (space created by 'new int;')
Data to store = 24, into k[3] = 0xacfb40 (space created by 'new int;')
Data to store = 25, into k[4] = 0xacfb60 (space created by 'new int;')
Iteration 1: With pointer = 0xacf010 ( *pointer[100] was automatically created for each instance of class A)
Retrieved Data = 1, from pointer[0] = 0xacf9a0 (pointer stored earlier)
Retrieved Data = 2, from pointer[1] = 0xacf9c0 (pointer stored earlier)
Retrieved Data = 3, from pointer[2] = 0xacf9e0 (pointer stored earlier)
Retrieved Data = 4, from pointer[3] = 0xacfa00 (pointer stored earlier)
Retrieved Data = 5, from pointer[4] = 0xacfa20 (pointer stored earlier)
Iteration 2: With pointer = 0xacf340 ( *pointer[100] was automatically created for each instance of class A)
Retrieved Data = 11, from pointer[0] = 0xacfa40 (pointer stored earlier)
Retrieved Data = 12, from pointer[1] = 0xacfa60 (pointer stored earlier)
Retrieved Data = 13, from pointer[2] = 0xacfa80 (pointer stored earlier)
Retrieved Data = 14, from pointer[3] = 0xacfaa0 (pointer stored earlier)
Retrieved Data = 15, from pointer[4] = 0xacfac0 (pointer stored earlier)
Iteration 3: With pointer = 0xacf670 ( *pointer[100] was automatically created for each instance of class A)
Retrieved Data = 21, from pointer[0] = 0xacfae0 (pointer stored earlier)
Retrieved Data = 22, from pointer[1] = 0xacfb00 (pointer stored earlier)
Retrieved Data = 23, from pointer[2] = 0xacfb20 (pointer stored earlier)
Retrieved Data = 24, from pointer[3] = 0xacfb40 (pointer stored earlier)
Retrieved Data = 25, from pointer[4] = 0xacfb60 (pointer stored earlier)
|