MYTUTOR SUBJECT ANSWERS

486 views

What is the difference between local and global variables?

Local variables are defined within a subroutine. Their scope/visibility ends when the cursor leaves the subroutine.

Global variables on the other hand are variables that exist outside of all the subroutines and functions, and are available to all of them.

Chris D. A Level Computing tutor, A Level Maths tutor, GCSE Maths tut...

1 year ago

Answered by Chris, an A Level Computing tutor with MyTutor


Still stuck? Get one-to-one help from a personally interviewed subject specialist

18 SUBJECT SPECIALISTS

£36 /hr

Dario P.

Degree: Computer Science (Masters) - Manchester University

Subjects offered:Computing, Maths+ 2 more

Computing
Maths
Italian
ICT

“I am Computer Science Russell Group student with experience in research and industry and strong mathematical skills, I enjoy tutoring and helping students consolidate their knowledge.”

£20 /hr

Connor M.

Degree: Electronic and Electrical Engineering (Masters) - Bath University

Subjects offered:Computing, Maths+ 3 more

Computing
Maths
Electronics
Economics
Business Studies

“About Me: I am a electronic and electrical engineering student at the University of Bath. I have a strong passion for learning and I'm more than happy to help those willing to learn. I am patient and encouraging, I have previously tu...”

£20 /hr

Matthew M.

Degree: MSci Computer Science (Masters) - Lancaster University

Subjects offered:Computing, Maths+ 3 more

Computing
Maths
Economics
Business Studies
-Personal Statements-

“About Matt: I'm Matt and I am a computer science student at Lancaster University. I have often been described as being friendly and hardworking by my friends, family and work colleagues. Prior to University I worked in the industry as...”

About the author

Chris D.

Currently unavailable: for regular students

Degree: Computer Science (with placement) (Bachelors) - Bath University

Subjects offered:Computing, Physics+ 1 more

Computing
Physics
Maths

“First year Computer Science Student, University of BathA*A*A*A in A level Mathematics, Physics, Computing and History.I'd love to pass on my knowledge of my A level subjects to anyone who needs help!I have a wealth of resources an...”

You may also like...

Posts by Chris

Explain the Principle of Moments.

Explain the process of annihilation?

What do the logical operators AND, OR, XOR and NOT do?

What is an equipotential in an electric/gravitational field?

Other A Level Computing questions

Describe a queue data structure.

What is the difference between validation and verification?

What is the difference between a high level language and a low level language?

What is the difference between a variable and an identifier?

View A Level Computing tutors

We use cookies to improve your site experience. By continuing to use this website, we'll assume that you're OK with this. Dismiss

mtw:mercury1:status:ok