Plese do it on C++ and add comments.
Locate the largest element Write the following function thatfinds the location of the largest element in a two-dimensionalarray. void locateLargest(const double a[][4], int location[]) Thelocation is stored in a one-dimensional array location thatcontains two elements. These two elements indicate the row andcolumn indices of the largest element in the two-dimensional array.Write a test program that prompts the user to enter a 3 × 4two-dimensional array and displays the location of the largestelement in the array. Here is a sample program run: Enter thearray: 23.5 35 2 10 4.5 3 45 3.5 35 44 5.5 9.6 The location of thelargest element is at (1, 2)
Plese do it on C++ and add comments. Locate the largest element Write the following function that finds the location of
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am