C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <stdio.h>
void create();
void display();
void insert_pos();
void del_pos();
int n,a[150],count;
int main()
{
int ch;
while(1)
{
printf("\nARRAY OPERATIONS-MENU\n");
printf("1.CREATE AN ARRAY\n");
printf("2.DISPLAY ARRAY ELEMENTS\n");
printf("3.INSERT AN ELEMENT AT A POSITION\n");
printf("4.DELETE AN ELEMENT FROM A POSITION\n");
printf("5.EXIT\n");
printf("ENTER YOUR CHOICE\n");
scanf("%d",&ch);
switch(ch)
{
case 1:if(count==0||n==0)
create();
else
printf("ARRAY ALREADY CREATED\n");
break;
case 2:if(count==0||n<0)
printf("array not created,create the array\n");
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run