diff --git a/insertion.c b/insertion.c new file mode 100644 index 0000000..0f62684 --- /dev/null +++ b/insertion.c @@ -0,0 +1,29 @@ +#include +#include +int k,n,i,j=1,l,x; +int main() { + printf("enter the no. of element you wnt to take in array\n"); + scanf("%d",&n); + printf("enter the values of element in the array"); + int a[n]; + for(i=0;i=j;k--) + { + a[k+1]=a[k]; + } + a[j]=x; + n=n+1; + for(l=0;l