Aviva Interview Question

how dynamic memory allocation works in c++