Quote:
Originally Posted by cbk1994
Ideally use temp.i instead of just i. I think variables used in for statements are always temporary, but it improves readability imo.
|
For stowen's benefit, might be worth mentioning that since the temp array is instantiated inside the for loop it'll be disposed of after the for loop ends so referencing it'll just refer to a null object, correct, no?