May 2003
Beginner
624 pages
15h 47m
English
A variable is a location in the computer's memory where you can temporarily store information, such as a number or a string.
![]() | In a programming language, a string is a sequence of characters and is delimited by double quotes. An example of a string would be "Hello, World!" |
Variables have three components to them:
A value, such as 5, or “Hello, World!”
A name, which is used to refer to the value of the variable.
A type, which indicates what type of values can be stored. For example, a variable whose value is 5 would have the type Integer. A variable whose value is “Hello, World!” would have the type string.
Because a variable's ... |
Read now
Unlock full access