summaryrefslogtreecommitdiff
path: root/wk4/lect/memory.c
blob: 1ec50e70530e074fb5d1dfab3084eb5c07276662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <cs50.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void)
{
    int *x = malloc(3 *sizeof(int));
    x[0] = 72;
    x[1] = 73;
    x[2] = 33;
    free(x);
}