InternetNews.com - Webopedia: Online Dictionary for Computer and Internet Terms
 


   

Partner With Us
















Enter a keyword...
...or choose a category.

variable
Last modified: Sunday, September 01, 1996  

A symbol or name that stands for a value. For example, in the expression

x+y

x and y are variables. Variables can represent numeric values, characters, character strings, or memory addresses.

Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data. Then, when the program is executed, the variables are replaced with real data. This makes it possible for the same program to process different sets of data.

Every variable has a name, called the variable name, and a data type. A variable's data type indicates what sort of value the variable represents, such as whether it is an integer, a floating-point number, or a character.

The opposite of a variable is a constant. Constants are values that never change. Because of their inflexibility, constants are used less often than variables in programming.

Related Categories
  • Expressions
  • Related Terms
  • character string
  • constant
  • data
  • data type
  • expression
  • literal
  • Shopping
    variable Products
    Compare Products,Prices and Stores

    Shop by Category:
    Tools and Accessories
    2942 Store Offers

    Indoor Grills and Sandwich Makers
    151 Model Matches

    Home Furnishings
    2225 Store Offers

     

    Add internetnews.com
    to your browser search box.

    IE 7 | Firefox 2.0 | Firefox 1.5.x

    Receive news
    via our XML/RSS:
    feed

    More InternetNews.com


    Hardware Software Mobility Web Content
    Search Government Developer Business
    Storage E-Commerce Networking Security



    internet.commediabistro.comJusttechjobs.comGraphics.com

    Search:

    WebMediaBrands Corporate Info

    Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
    Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs