1 |
Scalar variables are named variables holding numeric or string scalars (or both). There are NO types (integer, float, char) of variables. The interpretation of a scalar is always determined by its context and not "type" of variable.
-
$cps616_num is a scalar variable representing number of students in CPS 616
|
2 |
Variables are set by conventional equal sign
|
3 |
Note statements are ended by semicolons -- not by newlines and # can be used to denote a comment
-
$Instructor= "Fox"; # Not really true as Wojtek did all the work
|
4 |
Comments may appear after statements or on a line on their own. They are terminated by newlines.
|