Infosys Interview Question

Basic program questions regarding c / c++