OnlineWoerterBuecher.de
Internes

Lexikon


variable


(Sometimes "var" /veir/ or /var/) A named memory location in which a program can store intermediate results and from which it can read it them. Each programming language has different rules about how variables can be named, typed, and used. Typically, a value is "assigned" to a variable in an assignment statement. The value is obtained by evaluating an expression and then stored in the variable. For example, the assignment x = y + 1 means "add one to y and store the result in x". This may look like a mathematical equation but the mathematical equality is only true in the program until the value of x or y changes. Furthermore, statements like x = x + 1 are common. This means "add one to x", which only makes sense as a state changing operation, not as a mathematical equality. The simplest form of variable corresponds to a single-word of memory or a CPU register and an assignment to a load or store machine code operation. A variable is usually defined to have a type, which never changes, and which defines the set of values the variable can hold. A type may specify a single ("atomic") value or a collection ("aggregate") of values of the same or different types. A common aggregate type is the array - a set of values, one of which can be selected by supplying a numerical index. Languages may be untyped, weakly typed, strongly typed, or some combination. Object-oriented programming languages extend this to object types or classes. A variable' s scope is the region of the program source within which it represents a certain thing. Scoping rules are also highly language dependent but most serious languages support both local variables and global variables. Subroutine and function formal arguments are special variables which are set automatically by the language runtime on entry to the subroutine. In a functional programming language, a variable' s value never changes and change of state is handled as recursion over lists of values. (2004-11-16)

In addition suitable contents:
[ 2 ] [ = ] [ ad ] [ ag ] [ aggregate type ] [ ai ] [ al ] [ am ] [ an ] [ ar ] [ arc ] [ arg ] [ argument ] [ array ] [ as ] [ assignment ] [ at ] [ atomic ] [ au ] [ av ] [ b ] [ ba ] [ be ] [ bi ] [ bj ] [ bo ] [ bot ] [ br ] [ bt ] [ by ] [ C ] [ ca ] [ cat ] [ ch ] [ ci ] [ cl ] [ class ] [ co ] [ code ] [ com ] [ combination ] [ CP ] [ CPU ] [ cu ] [ dd ] [ de ] [ diff ] [ du ] [ E ] [ ec ] [ ed ] [ eg ] [ er ] [ era ] [ es ] [ et ] [ expression ] [ extend ] [ fi ] [ file ] [ fo ] [ for ] [ formal argument ] [ fr ] [ function ] [ functional ] [ functional program ] [ functional programming ] [ ga ] [ gate ] [ ge ] [ gh ] [ gi ] [ gl ] [ glob ] [ gn ] [ gr ] [ gu ] [ h ] [ handle ] [ hang ] [ hing ] [ hr ] [ id ] [ ie ] [ iff ] [ il ] [ in ] [ index ] [ int ] [ io ] [ ir ] [ is ] [ it ] [ ke ] [ la ] [ language ] [ ld ] [ Lex ] [ li ] [ list ] [ lists ] [ load ] [ local variable ] [ location ] [ ls ] [ lt ] [ lu ] [ ly ] [ ma ] [ machine ] [ machine code ] [ memory ] [ memory location ] [ mm ] [ mo ] [ mod ] [ module ] [ mp ] [ na ] [ named ] [ nc ] [ ne ] [ ng ] [ nl ] [ no ] [ ns ] [ nu ] [ O ] [ object ] [ om ] [ op ] [ pe ] [ ph ] [ ping ] [ pl ] [ ply ] [ port ] [ pr ] [ program ] [ programming ] [ programming language ] [ quality ] [ query ] [ rc ] [ re ] [ recursion ] [ register ] [ ro ] [ routine ] [ ru ] [ run ] [ S ] [ sa ] [ sam ] [ sc ] [ scope ] [ se ] [ set ] [ si ] [ sig ] [ so ] [ source ] [ spec ] [ st ] [ state ] [ store ] [ strongly typed ] [ su ] [ subroutine ] [ support ] [ T ] [ th ] [ to ] [ tr ] [ tron ] [ type ] [ ua ] [ um ] [ untyped ] [ up ] [ us ] [ va ] [ value ] [ var ] [ ve ] [ weakly typed ] [ word ]






Go Back ]

Free On-line Dictionary of Computing

Copyright © by OnlineWoerterBuecher.de - (10057 Reads)

All logos and trademarks in this site are property of their respective owner.

Page Generation in 0.2151 Seconds, with 18 Database-Queries
Zurück zur Startseite