Aviva interview question

how dynamic memory allocation works in c++