Infosys interview question

c and c++