Pregunta de entrevista de AMD

Some basic c++ questions and some pointless puzzles.