Infosys Interview Question

basic knowledge on c and c++.