MathWorks interview question

Basic c/c++ questions