What is the output of the following code? [code]function mad= rush(p,varargin) disp(p) wish=cos(varargin{1}) end p=rush(1:3,Inf)[/code]

Khang Lê

New member
What is the output of the following code?
Code:
function mad= rush(p,varargin)
disp(p)
wish=cos(varargin{1})
end
p=rush(1:3,Inf)
A. Error due to Inf
B. -1
C.
p{1}= 1 2 3
wish=0
D.
p{1}= 1 2 3
wish=NaN
 

Tìm kiếm

Back
Top