Basically I am attempting a HW assignment for questions that a frequently asked in interviews. I am not sure if I am having problems with the coding or actually understanding what they question is asking for. Basically I am asked to find an element in a sorted array and that is it. The element I am assuming is the pivot point? I am more so needing help with the understanding than the coding itself but advice on either is welcomed. Keep in mind this is entry level C work I am doing so any advanced explanations will most likely be over my understanding. Here is what I have so far.

```
#include <stdio.h>
#define size 5
int main()
{
int array[size] = {4, 8, 0, 1, 3}, pivot, i, j, high, low, mid;
high=4;
low=0;
while ( low <= high )
{
mid=(high + low)/2;
if (array[low] < array[mid])
low = mid+1;
else if (array[mid] < array[high])
high = mid-1;
else
printf("%d is pivot", mid);
```