Skip to content

Commit 930a5f6

Browse files
insert in array
1 parent 6808ac1 commit 930a5f6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

4. Array ADT/insert_in_array.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,11 @@ void Insert(struct Array *arr,int index,int x)
3939

4040
int main()
4141
{
42+
struct Array arr1={{2,3,4,5,6},10,5};
43+
44+
Append(&arr1,10);
45+
Insert(&arr1,0,12);
46+
Display(arr1);
47+
4248
return 0;
4349
}

0 commit comments

Comments
 (0)