So I was asked to write some simple functions that would search through an array of length (s) and tell how many times an (integer, double etc. ) appeared within the array. It's pretty simple because they give you the length of the array. However one of the functions doesn't have a length passed with the other parameters!
char arrayX(char a, char v)
Where you are asked to find amount of times value (v) is in the array.
What is the simplest way to do this?
What would be the most efficient if the array turned out to be VERY large?