Infosys interview question

Code optimization and why do you code in C++?