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
|
Variables are set by conventional equal sign
|
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
|
Comments may appear after statements or on a line on their own. They are terminated by newlines.
|