
Consider the following code below. The function printArray accepts a pointer to integer which represents an array of integer.After that this method prints the entire of the array numbers to the monitor.
includeusing std::cout; using std::endl;
void printArray(int *array, int count)
{
for( int i=0; i a. Overload function printArray so that it takes 2 additional integer arguments, namely int low and int high. A call to this function will print only the designated portion of the array. Validate low and high; if either is out of range or if high is less than or equal to low the overloaded printArray function should return 0; otherwise, printArray should return the number of elements printed.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.