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 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; j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
