Performing operations on array returned from function?
Hi, I am returning an array to main() from a function. Once it has been returned to main() how do I perform operations on this array, such as printing its contents, counting the occurrences of certain numbers or assigning some of its contents to another array?
For example, say the function is called arrayfunction() and returns an array of 5 integers. I can't print the contents like this:
Code:
Printf("Here is my array: %d", arrayfunction());
because that would just print the first number of the array, right? And if I put it through a loop it would just keep printing the first number of the array. So how would I print the entire array?
Thanks :)