1.

How does MATLAB help in passing function arguments?(a) By call by value and call by reference(b) Only by call by value(c) Only by call by reference(d) By call by addressI had been asked this question in homework.This interesting question is from Functions in chapter MATLAB Basics of MATLAB

Answer» CORRECT option is (a) By call by value and call by reference

To explain I would SAY: Like C, MATLAB allows to pass almost all arguments by value. But, if the argument passed into the function is only for mathematical purpose then it is passed as a reference. This helps in SAVING the memory reserved for the ORIGINAL value of the argument.


Discussion

No Comment Found

Related InterviewSolutions