C++ Program to Find Largest and Second Largest Number in 2D Array

By | December 24, 2011

Here is the C++ program to find largest and second largest number in a 2d array or matrix.



Enter no of rows and columns(max 5):3
Enter the array:
4 6 8
2 4 6
2 12 5
Largest number:12
Second largest number:8

Leave a Reply

Your email address will not be published. Required fields are marked *