I have a code where i am trying to find the second largest number in a 2d array however when i debug it, it freezes and says," Unhandled exception at 0x779415de in 2darray.exe: 0xC0000005: Access violation reading location 0x00000000.
Id appreciate any help on this matter. thanks
using namespace std;
int SecondMax2D(int a, int rows)