DSA IN C Lecture 3: 13 dsa jenny
35 views2 pages
Document Summary
1. 3 array operations | deletion from array | I will discuss the deletion operation using the example i used in a previous video. Understanding how to delete data from a specific position will also make it easier to delete data from the beginning or end of the array. I declared an array of size 50 in the previous code, and the memory manager allocated 200 bytes of memory for this array. One variable, size, is used to determine the maximum size of the array. If the user wants to insert only 10 or 5 elements, for example, i will ask them how much size they want for the array, and this will allocate an additional 4 bytes of memory. The user will then enter the elements of the array, which will be initialized at runtime. To delete data from the array, i will ask the user from which position they want to delete the data.
Get access
Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers