The following operation result in [code]Function p= ol(q,varargin) narginchk(45,Inf)[/code]

Thê Hy

New member
The following operation result in
Code:
Function p= ol(q,varargin)
narginchk(45,Inf)
A. Error due to Inf
B. The range of the varargin array becomes (44,Inf)
C. The range of the varargin array becomes (45,Inf)
D. The range of the varargin array becomes [45,Inf]
 
Answer: b
Explanation: The narginchk keyword limits the size of the varargin array to atleast 44 or the function won’t run. This is because the first input to a function does not go in to the varargin array but to q and hence, the minimum number of elements the varargin array has to take is 44.
 

Tìm kiếm

Back
Top