Question: Consider the following function: function ret = func 4 ( n ) ret = 0 ; switch n case 1 ret = 1 0 ;

Consider the following function:
function ret = func4(n)
ret =0;
switch n
case 1
ret =10;
case 2
ret =20;
otherwise
ret =30;
end
end
What is the return value of func 4(0)?
10
20
0
30
Consider the following function: function ret =

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 Programming Questions!