Siemens interview question

Some basic question about C/C++.