1. Little question
Just as functions and procedures are called routines, I'd like to know what
is the term that refers to both variables and constants. (No clue from the
manual)
---------
It's funny to describe a constant to someone as "it's kind of like a
variable, only that you can't modify its contents".
Answer if u know.
Lionel W
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
2. Re: Little question
Lionel Wong wrote:
>Just as functions and procedures are called routines, I'd like to know =
what
>is the term that refers to both variables and constants. (No clue from =
the
>manual)
>
>---------
>It's funny to describe a constant to someone as "it's kind of like a
>variable, only that you can't modify its contents".
Good question. Honestly, I don't know if there is a term that applies to =
both. I think I would lump them both with literals and just call them =
all "data", since they can usually be used interchangeably. Hmmm.. you =
might try describing a constant as "a literal with a name".
Rod Jackson
3. Re: Little question
Hello,
Lionel Wong wrote:
>Just as functions and procedures are called routines, I'd like to know what
>is the term that refers to both variables and constants. (No clue from the
>manual)
>---------
>It's funny to describe a constant to someone as "it's kind of like a
>variable, only that you can't modify its contents".
>
>Answer if u know.
>Lionel W
One of my computer teachers called them collectively "Named Values" but I'm
not sure if that's official.
Lewis Townsend
_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com
4. Re: Little question
Variables can be called DATA TYPES.
The important difference between variables and constants is
A variable is a named address location ( exp. my_varname ) in memory that
contains the data in the form of the variable's type ( integer, float,
etc. ). A constant is a NAME that represents some assigned value, which
when the compiler sees this NAME it substitutes that assigned value.
This value is always CONSTANT throughout your program and the most compilers
will generate an error if you try to change it. The reason for constant use
is so a programmer can use names like PI instead of typing some long number.
and if you wanted change the value throught out your entire program you
only have to change the value assigned to constant at the place where
you first declared it.
Bernie