x will be incremented by 3 7 times. On the 6th it reaches 18 which is still less than 20, so it runs one more time to reach 21 and then condition breaks out of the loop
x will be incremented by 3 7 times. On the 6th it reaches 18 which is still less than 20, so it runs one more time to reach 21 and then condition breaks out of the loop
The second arg to CopyTo is the interesting one, I did not know about. It shifts the starting point by 2 and copy start with the third elem, resulting in answer 0,0,1,2,3
The second arg to CopyTo is the interesting one, I did not know about. It shifts the starting point by 2 and copy start with the third elem, resulting in answer 0,0,1,2,3