KPIT Technologies interview question

Everything was from c language