Question: The file baz.m contains the following code: function b = baz ( a ) b = x ? ? ? 2 + a ;

The file "baz.m" contains the following code:
function b=baz(a)
b=x???2+a;
end
If the following lines of code are executed in the command window:
x=9;
y=baz(19);
disp(x);
what will be the result?
the value "100" will be displayed
the value "19" will be displayed
the value "9" will be displayed
an error will be reported
the result cannot be determined from the code shown
 The file "baz.m" contains the following code: function b=baz(a) b=x???2+a; end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!