Input
Output
#include <stdio.h> void main() { int a[24]={ 5, 7, 8, 9},i,n=4,position=3; //clrscr(); printf("Enter the number of elements: "); printf("%d\n",n); printf("Enter the integer: "); for(i=0; i<n; i++) { printf("%d",a[i]); } printf("\nEnter the delete position of an element in an array: "); //scanf("%d", &position); printf("%d\n",position); if (position < n+1) { for (i = position - 1; i < n - 1; i++) { a[i] = a[i+1]; } printf("After deleted array of an elements: "); for (i = 0; i < n - 1; i++) printf("%d ", a[i]); } else { printf("Array of element deletion is not possible."); } //getch(); }