What is the output of the following code? [code]function [die,af] = Bod(y,x) die = y*x; if nargout < 1 error('Boo !') else disp(‘Yo

What is the output of the following code?
Code:
function [die,af] = Bod(y,x)
die = y*x;
if nargout < 1
    error('Boo !')
 else
   disp(‘Yo !’)
   af = abs(die);
end
end
[p]=Bod(1,[1 -2])
A. Error with Boo! displayed
B.
Yo !
p=1
C.
Yo !
p=2
D.
Yo !
p=-2
 

Tìm kiếm

Back
Top