Infosys Interview Question

Basic questions related to c++