New keyword and pointer

Why is new keyword used here , also why is pointer used in int n during this declaration of 2-d matrix

hi @hpant7563_8b950b13f3de9913 this is a way of making dynamic array buddy u can make static also read about making dynamic arrays in cpp