can we sort an array using the in built sort function .?
otherwise which is the best method to sort an 2 D array.
Sorting of 2D arrays
Hey @ashishxmathew
Yes we can ,u have to write a loop in which u will apply sort
for(int i=0;i<n:++i)
sort(arr+i*n,arr+n+i*n);
This will sort row wise