Still kind of new at this, but I am trying to write code to do a few different things. I would like it to count odd and evens, display the prime numbers,and I want it to find the largest integer, all from a randomized array. I tried and I think something is amiss. Just not sure what. Any help would be great.
Line 46: Why are you passing num_even and num_odd by reference? You never use them in count_odds_evens().
Line 24: Avoid the use of hard coded constants. You should be passing in the size of the array as an argument. Presumably, that's s, but you never use it.
General comment: Why are you passing arguments by reference when you don't update the values in the caller? It's not illegal, however, ints are best passed by value if you're not going to change the value in the caller (which you can't because of the const.