Statically sized arrays have their performance advantages when the size is known statically, at compile time. Your arrays are, however, dynamically sized, with the size n
being a runtime variable.
3 Likes