Question: How can a variable used outside a function be accessed by the function?

How can a variable used outside a function be accessed by the function?

Step by Step Solution

3.33 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

So the question is how to access a variable inside a function which was created outside the function ... View full answer

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 World Wide Questions!