Code:
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
int main() {
int num;
int *ptr;
int **handle;
num = 14;
ptr = (int *)malloc(2 * sizeof(int));
*ptr = num;
handle = (int **)malloc(1 * sizeof(int *));
*handle = ptr;
// Insert extra code here
return 0;
}
(Exercise) How memory is used From lecture, we’ve learned that there are 3 pools of memory for storing variables, based on the nature of their usage. TPS (Think-Pair-Share) activity 1 Paired with the classmate sitting next to you and do the following tasks (20 minutes):
PayPal Gateway not configured
PayPal Gateway not configured