Frage im Vorstellungsgespräch bei Qualcomm

Nothing Unexpected, basic c/c++ problem involving pointer