Infosys Interview Question

Related to c and c++