AMD Interview Question

Some basic c++ questions and some pointless puzzles.