<filename>Memory Management/Dynamic Memory Allocation (The Heap)/workspace/using malloc and free/malloc_example.cpp
#include <stdio.h> 
#include <stdlib.h> 
  
int main() 
{ 
    int *p = (int*)malloc(3*sizeof(int));
    p[0] = 1;
    p[1] = 2;
    p[2] = 3;
    printf("address=%p, value=%d\n", p, p[1]);

    return 0; 
}