4 Write Function Int Getarray Int Size Int Fillvalue Returns Dynamically Allocated Array G Q43876213

4) Write a function int * getArray(int size, int fillvalue) that returns a dynamically allocated array with the given size. Each element of the new array should be set to the given fillValue. 5) Write a function Show transcribed image text 4) Write a function int * getArray(int size, int fillvalue) that returns a dynamically allocated array with the given size. Each element of the new array should be set to the given fillValue. 5) Write a function
Expert Answer
Answer to 4) Write a function int * getArray(int size, int fillvalue) that returns a dynamically allocated array with the given si…
OR