Question: How much memory is used to store the data used in this program? Give just the number (not B or bytes after it). Assume: 1.

 How much memory is used to store the data used inthis program? Give just the number (not B or bytes after it).

How much memory is used to store the data used in this program? Give just the number (not B or bytes after it). Assume: 1. sizes: int - 4B (4 bytes) double - 8B (8 bytes) pointer/memory address - 8B (8 bytes) assume a struct has size equal to the sum of the sizes of its components. 2. in the function execution, it finished the loop and it is about to execute line 13, "return L;" 3. The array, arr, has 4 elements and N is 4. HINT: look at the first slide (slide 7) for the array_2_list function in the "Linked Lists in C REVIEW" slides. // creates a single linked list from an array nodePT array_2_list (int arr[], int N) { int j; nodePT last = NULL, newP=NULL; nodaPT nodaPT mailozoflarut node Linked LISLS Slides. // creates a single linked list from an array nodePT array_2_list(int arr[], int n) { int i; node PT last = NULL, newP=NULL; node PT L = (node PT) malloc(sizeof(struct node)); L->data = arr[0]; L->next = NULL; lastP = L; for (j = 1; jdata = arr[j]; newp->next = NULL; lastp->next = newP; last = newP; } return L; // line 13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!