Infosys interview question

basic knowledge on c and c++.