Infosys interview question

Oops concept C vs Cpp