Lab 3
Lab 3
Lab 3: Pointer
Complete the following given functions
7. Count even numbers from a given subarray. Generate a subarray with all even numbers from the given array.
8. Find the subarray with the largest total value from a given array.
Page 1 / 2
Programming Techniques Knowledge Engineering Department
12. Given 2 ascending arrays with distinguishing elements. Generate a new ascending array with all elements from the
given array.
14. Given 2 1D arrays a and b. Generate the matrix c that c[i][j] = a[i] * b[j].
bool multiple2Matrices(int** a, int** b, int lengtha, int widtha, int lengthb, int widthb)
19. Given matrice a. Find the submatrix of a which satisfy keyboard input size and has the largest total value of its
elements.
int** findSubmatrix(int** a, int length, int width, int &length_, int &width_)
Page 2 / 2