Rajat Minerals interview question

C and c++ question