GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Mindmap

Variables:static, global, local

rwc.carlton Computing Cambridge IGCSE Englisch

Inhalt der Mindmap

Variables:static, global, local

  1. when program is run, static variables are stored in a location in memory and have a lifespan that klast while the program is running.

    • Eg. if you assign the number 2.14 to a static variable will still contain 2.14 whenever you run the sub procedure until the whole program stops running
  2. When a dynamic variable is defined, it is assinged a new loaction

  3. Local

    • defined inside na sub procedure and is only accesible from within that sub procedure. This is known as scope
    • Advantage - much easier to tack changes to a variable and reason for the changes when it is only used within a sub procedure + can prevent variable from being over wriiten by something else in yopur program
  4. global

    • Wideer scope
    • defined globally and so is accesible from anywherte within a program
    • advanatge - sometimes it can be the most efficient way of ensuring that a piece of sata is accesible to all sub procedures

Informationen

Beschreibung
Cambridge IGCSE Computing (Computer Software) Mindmap am Variables:static, global, local, erstellt von rwc.carlton am 01/05/2015.
Erstellt von
rwc.carlton
Aufrufe
0
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck