Lineae search array

how i==n jbki array is of size n-1. how is it possible
i should be equal to max n-1

@Aditya-Kushwaha-914550392281281 While the value of I <=n-1 it will search in the array and as the value of increases to n the loop will break so the value of I will be n at that case.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

how to input a single line of integer like 1 2 3 4 5 in ehich no. of elements is not given how to input it