Addvalue Technologies interview question

Basic C/C++ questions.