KPIT Technologies interview question

Basic c and c++