/* Program to demonstrate Indexed sequential search*/ #include #define INTERVAL 5 /* If interval is 5 then every 5th element of original array will be represented in index table */ /* We assume that the original array x is sorted in ascending order */ struct table { int kindex, pindex ; } ; int iss(int x[ ], int n, int key, struct table index[ ], int indexsize) ; void main() { /* Size of index table is 1/5th the size of original array since interval is 5 */ struct table index[10] ; int i, n, key, indexsize, p, q, x[50] ; clrscr() ; printf("Enter the no of elements: ") ; scanf("%d",&n) ; printf("Enter the elements:\n") ; for(i=0 ; ihighlimit) return -1 ; else return j ; }