ie8 fix

variable

1 Results

Dictionary

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.



Sponsored White Papers, Webcasts & Resources

  • 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.

    News items | April 12, 2007 7:56pm PDT

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...

    Blog posts | January 25, 2011 7:10am PST

  • 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...

    Blog posts | March 26, 2009 11:59am PDT

  • 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...

    Blog posts | October 14, 2008 6:44am PDT

  • 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...

    Blog posts | October 2, 2008 2:45am PDT

  • 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...

    Blog posts | August 29, 2007 7:23pm PDT

  • 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.

    News items | April 12, 2007 7:56pm PDT

  • 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...

    News items | August 14, 2003 12:00am PDT

  • 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...

    News items | June 24, 2003 12:00am PDT

ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

ie8 fix