Logo
Unionpedia
Communication
Get it on Google Play
New! Download Unionpedia on your Android™ device!
Download
Faster access than browser!
 

Static variable

Index Static variable

In computer programming, a static variable is a variable that has been allocated "statically", meaning that its lifetime (or "extent") is the entire run of the program. [1]

35 relations: Addressing mode, ALGOL 60, Automatic variable, BCPL, Bjarne Stroustrup, C (programming language), Call stack, Class variable, Compile time, Computer programming, Constant (computer programming), Data segment, Global variable, Immutable object, Instance (computer science), Linkage (software), Loader (computing), Local variable, Member variable, Memory address, Memory management, Method (computer programming), Object (computer science), Object file, Object-oriented programming, Run time (program lifecycle phase), Scope (computer science), Stack-based memory allocation, Static (keyword), String literal, The C++ Programming Language, Thread-local storage, Variable (computer science), Virtual method table, .bss.

Addressing mode

Addressing modes are an aspect of the instruction set architecture in most central processing unit (CPU) designs.

New!!: Static variable and Addressing mode · See more »

ALGOL 60

ALGOL 60 (short for Algorithmic Language 1960) is a member of the ALGOL family of computer programming languages.

New!!: Static variable and ALGOL 60 · See more »

Automatic variable

In computer programming, an automatic variable is a local variable which is allocated and deallocated automatically when program flow enters and leaves the variable's scope.

New!!: Static variable and Automatic variable · See more »

BCPL

BCPL ("Basic Combined Programming Language"; or 'Before C Programming Language' (a common humorous backronym)) is a procedural, imperative, and structured computer programming language.

New!!: Static variable and BCPL · See more »

Bjarne Stroustrup

Bjarne Stroustrup (born 30 December 1950) is a Danish computer scientist, who is most notable for the creation and development of the widely used C++ programming language.

New!!: Static variable and Bjarne Stroustrup · See more »

C (programming language)

C (as in the letter ''c'') is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.

New!!: Static variable and C (programming language) · See more »

Call stack

In computer science, a call stack is a stack data structure that stores information about the active subroutines of a computer program.

New!!: Static variable and Call stack · See more »

Class variable

In object-oriented programming with classes, a class variable is a variable defined in a class of which a single copy exists, regardless of how many instances of the class exist.

New!!: Static variable and Class variable · See more »

Compile time

In computer science, compile time refers to either the operations performed by a compiler (the "compile-time operations"), programming language requirements that must be met by source code for it to be successfully compiled (the "compile-time requirements"), or properties of the program that can be reasoned about during compilation.

New!!: Static variable and Compile time · See more »

Computer programming

Computer programming is the process of building and designing an executable computer program for accomplishing a specific computing task.

New!!: Static variable and Computer programming · See more »

Constant (computer programming)

In computer programming, a constant is a value that cannot be altered by the program during normal execution, i.e., the value is constant.

New!!: Static variable and Constant (computer programming) · See more »

Data segment

In computing, a data segment (often denoted.data) is a portion of an object file or the corresponding virtual address space of a program that contains initialized static variables, that is, global variables and static local variables.

New!!: Static variable and Data segment · See more »

Global variable

In computer programming, a global variable is a variable with global scope, meaning that it is visible (hence accessible) throughout the program, unless shadowed.

New!!: Static variable and Global variable · See more »

Immutable object

In object-oriented and functional programming, an immutable object (unchangeable object) is an object whose state cannot be modified after it is created.

New!!: Static variable and Immutable object · See more »

Instance (computer science)

In object-oriented programming (OOP), an instance is a concrete occurrence of any object, existing usually during the runtime of a computer program.

New!!: Static variable and Instance (computer science) · See more »

Linkage (software)

In programming languages, particularly the compiled ones like C, C++, and D, linkage describes how names can or can not refer to the same entity throughout the whole program or one single translation unit.

New!!: Static variable and Linkage (software) · See more »

Loader (computing)

In computer systems a loader is the part of an operating system that is responsible for loading programs and libraries.

New!!: Static variable and Loader (computing) · See more »

Local variable

In computer science, a local variable is a variable that is given local scope.

New!!: Static variable and Local variable · See more »

Member variable

In object-oriented programming, a member variable (sometimes called a member field) is a variable that is associated with a specific object, and accessible for all its methods (member functions).

New!!: Static variable and Member variable · See more »

Memory address

In computing, a memory address is a reference to a specific memory location used at various levels by software and hardware.

New!!: Static variable and Memory address · See more »

Memory management

Memory management is a form of resource management applied to computer memory.

New!!: Static variable and Memory management · See more »

Method (computer programming)

A method in object-oriented programming (OOP) is a procedure associated with a message and an object.

New!!: Static variable and Method (computer programming) · See more »

Object (computer science)

In computer science, an object can be a variable, a data structure, a function, or a method, and as such, is a value in memory referenced by an identifier.

New!!: Static variable and Object (computer science) · See more »

Object file

An object file is a file containing object code, meaning relocatable format machine code that is usually not directly executable.

New!!: Static variable and Object file · See more »

Object-oriented programming

Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often known as attributes; and code, in the form of procedures, often known as methods. A feature of objects is that an object's procedures can access and often modify the data fields of the object with which they are associated (objects have a notion of "this" or "self").

New!!: Static variable and Object-oriented programming · See more »

Run time (program lifecycle phase)

In computer science, run time, runtime or execution time is the time during which a program is running (executing), in contrast to other program lifecycle phases such as compile time, link time and load time.

New!!: Static variable and Run time (program lifecycle phase) · See more »

Scope (computer science)

In computer programming, the scope of a name binding – an association of a name to an entity, such as a variable – is the region of a computer program where the binding is valid: where the name can be used to refer to the entity.

New!!: Static variable and Scope (computer science) · See more »

Stack-based memory allocation

Stacks in computing architectures are regions of memory where data is added or removed in a last-in-first-out (LIFO) manner.

New!!: Static variable and Stack-based memory allocation · See more »

Static (keyword)

In the C programming language (and its close descendants such as C++ and Objective-C), static is a reserved word controlling both lifetime (as a static variable) and visibility (depending on linkage).

New!!: Static variable and Static (keyword) · See more »

String literal

A string literal or anonymous string is a type of literal in programming for the representation of a string value within the source code of a computer program.

New!!: Static variable and String literal · See more »

The C++ Programming Language

The C++ Programming Language is a computer programming book first published in October 1985.

New!!: Static variable and The C++ Programming Language · See more »

Thread-local storage

Thread-local storage (TLS) is a computer programming method that uses static or global memory local to a thread.

New!!: Static variable and Thread-local storage · See more »

Variable (computer science)

In computer programming, a variable or scalar is a storage location (identified by a memory address) paired with an associated symbolic name (an identifier), which contains some known or unknown quantity of information referred to as a value.

New!!: Static variable and Variable (computer science) · See more »

Virtual method table

A virtual method table (VMT), virtual function table, virtual call table, dispatch table, vtable, or vftable is a mechanism used in a programming language to support dynamic dispatch (or run-time method binding).

New!!: Static variable and Virtual method table · See more »

.bss

In computer programming, the name.bss or bss is used by many compilers and linkers for the portion of an object file or executable containing statically-allocated variables that are not explicitly initialized to any value.

New!!: Static variable and .bss · See more »

Redirects here:

Static global variable, Static memory allocation, Static variables.

References

[1] https://en.wikipedia.org/wiki/Static_variable

OutgoingIncoming
Hey! We are on Facebook now! »