You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./a.out
89 48 63 2 5 28 6
Option
1. Insert
2. Delete
3. Destroy
--------------------
What do you want? : 2
Data : 48
21881 48 63 2 5 28
Option
1. Insert
2. Delete
3. Destroy
--------------------
What do you want? : 3
double free or corruption (out)
You can see when delete 48, 48 is still here!!! In fact, the data to delete seems always to be the last one in array by reading the source code, so I suggest remove the data option in delete. And also the random value is caused by read unintialized value.
Also, the destroy operation also can't work.
The text was updated successfully, but these errors were encountered:
here is my examples
You can see when delete 48, 48 is still here!!! In fact, the data to delete seems always to be the last one in array by reading the source code, so I suggest remove the data option in delete. And also the random value is caused by read unintialized value.
Also, the destroy operation also can't work.
The text was updated successfully, but these errors were encountered: