Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
166 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:
Look Up: (916 Terms)
Browse the Dictionary
Section:
Categories:
Audio (80) Business (59) Community (19)
Design (89) Design Patterns (7) File Formats (32)
Games (64) General (83) Graphics (241)
Hardware (54) Network (41) OS (26)
People (30) Programming (143)
Contributions by DakeDesu
Variables
In most programming languages, there are areas of memory abstracted to contain certain values. Since most languages higher than C, do not worry about Registers and Memory Addresses, Variables are an abstract concept for those higher languages to store values that are not constant. In most languages, constants are not much use, as you may be required to gather user input, or change various states of the program. Constants generally include anything not put into variables. Just for further knowledge: [code] six = 4 + 2; # In this fictional example, six is a variable, while 4 and 2 are constants (or atleast as far as the interpretor/compiler is concerned). [/code] Generally the interpretor has the job of alloting various areas of memory for the variables to be put into and referenced from. In some languages (mostly compiled ones) variables may also be put into Registers--however that should be done with utmost caution.


Home
About
Contributors
Add Definition


The Game Dictionary™ is a trademark of GameDev.net LLC. No duplication, reproduction, or transmission of the Game Dictionary or its content is allowed without the consent of GameDev.net LLC.