- NEW!
Help answer this question below.
Variables are one of the more fundamental concepts in computer science. Programmers speak of declaring and initializing variables and assigning values to them. Put simply, variables are references to information stored in memory. The word variable means "able to be changed," and so variables are references to information in memory that a program can change over time. This is different than constants, which are required to remain the same. Though variables are stored in memory as a binary numerical value, most languages interpret the variables into a type. Common types include integers (for whole numbers), floats (for numbers with a decimal) and characters. Languages use either static or dynamic typing. Static typing requires that a declared variable can have only one type within a scope, whereas dynamic typing stores the type with the variable in memory, allowing a given variable to change types as a program goes on. A language uses pass-by value if, when it passes a variable into a function, the value contained by the variable is copied into a new memory location for use in the function. A language uses pass-by reference if, when it passes a variable into a function, the address of the location in memory is used by the function.Variable vs. Constant
Common Types
Static vs. Dynamic Typing
Pass-by Value
Pass-by Reference
Source:
Who invented computer programming?
by Answerbag Staff on February 1st, 2011
| 1 person likes this
How do i use visual basic 2008 express?
by Answerbag Staff on August 21st, 2010
| 1 person likes this
How do I create a table in Microsoft SQL?
by Answerbag Staff on November 8th, 2010
| 1 person likes this
You make the programs for money? Lots of money?
by Mister_Bromide on January 9th, 2012
| 1 person likes this
Are computer programmers better than most people?
by Mister_Bromide on January 16th, 2012
| 5 people like this
You're reading What do variables mean?
Comments