Question: Local vs . Global Variables What will be the values of x , y , a , c

Local vs. Global Variables
What will be the values of "x","y","a","c","d", and "e" be after running this code?
Function:
function [x,y,z]= myVariableTracker2(a,b,c,d)
x=a+b+c;
y=xd;
z=x+y;
end
Script:
& Using myVariableTracker2
b=1;
c =1;
d=4;
e =2;
[x,y,d]= myVariableTracker2(b,c,d,e);
 Local vs. Global Variables What will be the values of "x","y","a","c","d",

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!