MYTUTOR SUBJECT ANSWERS

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

11 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

3 SUBJECT SPECIALISTS

£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...”

£20 /hr

Joel B.

Degree: Mathematics & Computer Science (Bachelors) - Manchester University

Subjects offered: Computing, Physics+ 3 more

Computing
Physics
Maths
Further Mathematics
Chemistry

“About Me: Hello, my name is Joel and I am currently a student at the University of Manchester studying for a joint honours in Mathematics & Computer Science. I have experience in teaching maths (and further maths) to students in the ag...”

MyTutor guarantee

£20 /hr

Kirsty M.

Degree: Computer Science (Bachelors) - St. Andrews Unversity University

Subjects offered: Computing, Physics+ 2 more

Computing
Physics
Maths
Chemistry

“ABOUT ME I am a computer science student at the University of St Andrews, and have always been enthusiastic about maths and science, to such an extent that I am a STEM ambassador, a title given to people who encourage school pupils to ...”

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 do the logical operators AND, OR, XOR and NOT do?

Project Euler Question 3: What is the largest prime factor of the number 600851475143?

Explain how the even parity system works when transmitting ASCII codes. Include a description of the roles of the sending device and the receiving device during transmission.

Describe a queue data structure.

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