Infosys interview question

Basic program questions regarding c / c++