title: Insert Element in specific position in one dimentional array in c
body: <p>So I want this output: </p>
  
  <pre><code>Position you wanted to insert
  2
  
  Value You wanted to insert
  34
  
  Array after insertion:
  10 5 34 46 2 100 97 
  </code></pre>
  
  <p>But it can't show me the output, what do I do please help me, and fix it.. </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;conio.h&gt;
  
  int main(){
      int arr[100] = {10, 5, 46, 2, 100, 97};
      int n, max, i;
      n = 0;
  
      clrscr();
      if(i &gt; n){
          printf("postion you wanted to insert");
          scanf("%d", &amp;n);
      }
  
      printf("Value for position: \n");
      scanf("%d", &amp;max);
  
      for(i=7; i&gt;n-1; i--){
          arr[i+1] = arr[i];
          arr[n] = max;
      }
  
      printf("Array after insertion: \n");
      for(i = 0; i &lt; 7; i++){
          printf("%d\t", arr[i]);
      }
  
      getch();
  }
  </code></pre>