¡GoConqr estrena diseño! Cuéntanos qué te parece.

Mapa mental

Variables:static, global, local

rwc.carlton Computing Cambridge IGCSE Inglés

Contenido del mapa

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

Información

Descripción
Cambridge IGCSE (Computer Software) Computing Mapa Mental sobre Variables:static, global, local, creado por rwc.carlton el 01/05/2015.
Creado por
rwc.carlton
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?