Answer:
Following are the code in C++ language.
int integer,c=0 ;// variable declaration
int counter(int numbers[], size, integer) // function definition
{
for(int k=0; k<size; k++) // iterating over the loop
{
if (numbers[k] = integer) // check the condition value is found in the array
{
c++; // increment of count variable
}
return (c); // returns count
}
Explanation:
Following are the description of the code.