Answer:
The following is a function definition for the contains Number function that can be used to search a one-dimensional integer array for a specific integer value:
bool containsNumber(int table [ ], int nbrOfEntries, int value)
{
for (int i = 0; i < nbrOfEntries; i++)
{
if (table[i] == value)
return true;
}
return false;
}
This function takes three parameters: a one-dimensional integer array, the number of entries in the array, and an integer value.
It then searches the array for the integer value and returns a boolean value of true if the value is found and false otherwise.
The function iterates through the array using a for loop and checks each value in the array against the specified integer value.
If a match is found, the function returns true, otherwise it returns false.