MathWorks Interview Question

C++ basic questions on functionality