In the function definition of the linear search function, we made a pointer for array. what is it’s use? will it not work without a pointer to a array?
Function definition
@himanshigupta579 arrays are indeed pointers only. We can either pass it as an array, or as a pointer. Either way, the address of the 0th element is passed.
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.