Skip to content

Commit f313cc4

Browse files
delete from array
1 parent e210c4c commit f313cc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

4. Array ADT/delete_from_array.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@ int Delete(struct Array *arr,int index)
3636

3737
int main()
3838
{
39+
struct Array arr1={{2,3,4,5,6},10,5};
40+
41+
Display(arr1);
42+
printf("\n%d",Delete(&arr1,0));
43+
Display(arr1);
44+
3945
return 0;
4046
}

0 commit comments

Comments
 (0)