Professional Documents
Culture Documents
}
a[j]=index;
}
for(i=0;i<n;i++)
printf("%d\n",a[i]);
}
OUTPUT:
$ ./a.out
enter the values of n7
enter the elements of a[0]45
enter the elements of a[1]34
enter the elements of a[2]67
enter the elements of a[3]23
enter the elements of a[4]78
enter the elements of a[5]12
enter the elements of a[6]89
12
23
34
45
67
78
89
$