how to check array is sorted or not in c 2b 2b

Solutions on MaxInterview for how to check array is sorted or not in c 2b 2b by the best coders in the world

showing results for - "how to check array is sorted or not in c 2b 2b"
Ilan
03 May 2019
1bool check_sorted(int a[],int n)
2{
3 	return is_sorted(a,a+n); //stl function 
4}