Cloudera interview question

difference between malloc and new. How malloc works internally.