Curious about whether I'm just doing it wrong or if there's a better method, but I'm not quite sure how to make a function return an array.
For some reason, it hasn't quite worked for me, but it seems to work okay if I make it save the results to a given array and just have the function be a void
Though even then, it still seems unfortunate because I would have to have the array size beforehand, which at times seems computationally redundant in more complex cases
Is there a better solution? I've not much experience with C so I could just have the syntax wrong but I couldn't really find anything on it online



