
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>integer variable</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INTEGER VARIABLE
An integer variable is defined in the form
int <varname>;
where <varname> is the name to be given to the variable. An al-
ternate definition is
int <varname1>, <varname2>, ..., <varnameN>;
which allows you to define more than one integer variable in one
statement. An original value can be assigned to the integer variable
by using the form
int <varname> = <int_const>;
where <int_const> is an integer constant. Similarly, an original
value can be assigned in the multiple definition above by placing
the assignment before the comma. Some examples are:
int maximum;
int start = 0;
int level, i, count = 20, loop;
See Also: variables string variable
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson