Delta_G:
No it wouldn't. If you're going to allow some user to create an array in that function that is 15 elements large then you'd better have enough memory back to hold that array. If you can't use that memory for anything else then you haven't lost anything by actually reserving it for the thing you have to hold it for.
Well, what I want is to use that array and then clear it from the memory. If I use any pre-sized array, it will always be in memory and also limits the array size to certain value. If I choose very high value, it will be taking memory for no good reason. So it doesn't feel like right choice.
Having a pointer seemed good, set the array when need, and remove it after use. But it doesn't work.