How to store different function output in a single array or buffer

Also if you share what you have done it is easier to see which bit you understand / don’t understand.