Question d’entretien chez Qualcomm

Mostly about C/C++ programming, some puzzles