Friday, 6 May 2011

The chosen programming term

Variable

Well, it actually did not take me too long to choose that one from the given terms. Basically, i think variable was somethings that i had to deal with in every program that i wrote. And it was one of the first thing to be learned when studying about programing. It makes programming way easier if being used properly. That's why variable became one of the most powerful and useful term in programming. It allows programmers to make more flexible program

So what is variable in programming?

Easy definition for easy understanding variable :

A symbol or name that stands for a value.


Every variable has a name, called the variable name, and a data type.

For example:
Lets call x =200 , y =200 so

x+y will be 400 , obviously

if we change x =100, y = 500 then x+y will not be 400 anymore but 600.

So x and y are variables. They are not constant because we can change the value of them. Therfore the sum of x and y will change accordingly.

Visualize the term variable: A box that hold things inside it.

No comments:

Post a Comment