summaryrefslogtreecommitdiffstats
path: root/memory-allocation.cpp
blob: 83d7edaa52fffdb5d7b25bd347782831ca6096ab (plain)
1
2
3
4
5
6
7
8
9
int main(int argc, char *argv[]) {
    // int *hello = (int) malloc(10 * sizeof(int));
    int *hello = new int[10];

    // free(hello)
    delete hello;

    return 0;
}