MYTUTOR SUBJECT ANSWERS

378 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...

12 months ago

Answered by Chris, an A Level Computing tutor with MyTutor


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

10 SUBJECT SPECIALISTS

£20 /hr

Christopher P.

Degree: Computer Science (Bachelors) - Warwick University

Subjects offered: Computing, Maths+ 1 more

Computing
Maths
History

“About me: I am a Computer Science student currently studying at Warwick University. I've always had a passion throughout my education for Maths and Computing, as the vast array of ideas that you can bring to life through programming i...”

MyTutor guarantee

£24 /hr

Lauren G.

Degree: Technology Enhanced Learning (Masters) - Durham University

Subjects offered: Computing, Physics+ 2 more

Computing
Physics
Maths
ICT

“Hello! I'm currently a Master's student studying Technology Enhanced Learning at Durham University. I completed my undergrad last year in Natural Sciences with Maths and Computer Science, also from Durham.  I am very passionate about ...”

£20 /hr

Zoe N.

Degree: Computer Science (Masters) - St. Andrews University

Subjects offered: Computing, Maths+ 1 more

Computing
Maths
English

“About me: I'm a first year computer science student at the University of St. Andrews. I have been a private tutor previously for two years but I have been helping my younger brother with the subjects he struggles with for many more ye...”

MyTutor guarantee

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

What is Reverse Polish Notation?

Some problems are intractable. What does it mean for a problem to be described as intractable?

Describe a queue data structure.

Convert the base-10 number 74 into an 8-bit binary number

View A Level Computing tutors

Cookies:

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

mtw:mercury1:status:ok