The following operation results in? [code]narginchk(2,Inf)[/code]

Pham Quỳnh

New member
The following operation results in?
Code:
narginchk(2,Inf)
A. Error due to Inf
B. Limits the length of nargin from 2 to Inf
C. Logical Error
D. Limits the length of varargin from 1 to Inf
 
Answer: d
Explanation: The narginchk keyword, if present in a function, limits the input to the same function within a range. According to the above operation, if we use the varargin array while takin’ input in a function, the function will return an error if the number of inputs to the function are less than 2.
 

Tìm kiếm

Back
Top