Check If Array Is Sorted C Program

preview_player
Показать описание
Write a recursive function that returns 1 if an array of size n is in sorted order from smallest to largest
with all values less than or equal to max, and 0 otherwise.

Please Subscribe !

►Support this channel get C-Programming Book:

Get the code here:
Рекомендации по теме
Комментарии
Автор

what about if you have an array with 500 numbers?

Tlj
Автор

Sir what if I use count and count how many times one number is greater than or less than the other if there are n numbers and if they are sorted definitely the count value should be n-1 and if count is not n-1 then they are not sorted

srijagunda