I have a C program in which an array of floats has its elements accessed quite often for the duration of the program. The size of the array depends on an argument that a user will input and therefore will vary. Generally, the size will be small enough (~ 125 elements) so that the memory of the array can be placed on the stack and thus allocation and accessing it will be faster. But in rare cases, the array may be large enough such that it requires dynamic allocation. My initial solution for this was the following:I have a C program in which an array of floats