variable
1 ResultsDictionary
variable
In programming, a structure that holds data and is uniquely named by the programmer. It holds the data assigned to it until a new value is assigned or the program is finished. Control Values...
Dictionary
Definition: variable
In programming, a structure that holds data and is uniquely named by the programmer. It holds the data assigned to it until a new value is assigned or the program is finished.
Control Values
Variables are widely used to hold control values that keep track of something. For example, the C statement FOR (X=0; X<5; X++) performs the instructions following the statement within open and closed curly braces ({ and }) five times, and X is keeping track of that number of iterations. X is a variable set to zero (x=0), incremented by 1 (x++) and compared to 5 (x<5). The reason it is less than 5 (<5) is because we started with 0.
The Equals Sign
Variables are usually assigned with an equal sign. Numbers are unquoted; for example: COUNTER = 1 places the digit 1 in the variable COUNTER. Character data (text) requires quotes; for example: PRODUCT = "abc1234". In some languages, the type of data must be declared before it is assigned; for example, in C/C++, the statement INT COUNTER creates a variable that holds only whole numbers (integers).
Local and Global
A local variable is one that is referenced only within the subprogram, function or procedure it was defined in. A global variable can be used by the entire program. See environment variable, undefined variable and local variable.
THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
© 1981-2010 The Computer Language Company Inc. All rights reserved.
Sponsored White Papers, Webcasts & Resources
-
Exploring iPaaS Usage Scenarios: B2B and Cloud Service Integration
Check out this white paper to learn more about iPaas, or integration platform as a service offerings. Get your network on the same page.
-
IRS trudges on with aging computers
More than 20 years after its first attempt at a massive upgrade of 1960s-era mainframes, the IRS still isn't sure when the project will be finished.
Additional Results
-
Variable Data Gets the Nod from Catalogers
Clearly, it's ROI. Hence, not only does this say a lot about the growing influence of variable data printed marketing materials, it suggests to me that VDP is about to bloom outwards in other key...
-
Apple to launch 'variable-pricing' for iTunes
It appears that Apple has finally caved to the pressures of the recording industry. According to a report in the Los Angeles Times, Apple will introduce variable pricing for digital music on the...
-
Avanade software helps you get a grip on more than 100 green IT variables
For those of you seeking a green IT / power management calculator that isn't necessarily tied to one vendor's view of the world, you might want to consider a tool being used by services company...
-
Could royalty rate hike force Apple to reconsider variable pricing?
It's the other battle between Hollywood and Silicon Valley and this one, more like a showdown between the record labels and Apple, could determine the future of music on the iTunes Store. The...
-
Variable premiums the intrusive way
Scientists at the University of Nagoya have developed software that tracks your driving style. It knows how hard you press the accelerator/brake; your distance from other vehicles; and how...
-
IRS trudges on with aging computers
More than 20 years after its first attempt at a massive upgrade of 1960s-era mainframes, the IRS still isn't sure when the project will be finished.
-
Cut variable and fixed costs using VMware
Companies today are responding to the shaky financial environment by reducing budgets and cutting costs. Meeting reduced budgets often requires reducing equipment and staffing. However, businesses...
-
Ten keys to successful outsourcing
When an organization is struggling with IT services or support of a specific system or application, there's a propensity to say, "We don't have the skills or understanding to do it right. Let's...
The best of ZDNet, delivered
ZDNet Newsletters
Get the best of ZDNet delivered straight to your inbox




