So, you've got some data, and you want to store it in an array. Now lets say this data is just a bunch of numbers. In iOS, you could store it in an NSArray, however that requires boxing/unboxing, by wrapping the data in an NSNumber. But hey, boxing/unboxing is expensive, why would we want to do that? Instead, we can create a C style array. double array[10]; array[0] = 5.2; Pretty simple. There is another way to declare the same array , however, we take on some responsibility. int size = 10; double...(read more)
↧