You are on page 1of 1

Info tech

It may sometimes be necessary or wise to initialize a


variable, that is, to give the variable a starting or initial
value.
NB. A variable is assigned to a position in memory that is
not used. That position may nevertheless have data stored
there (from some previous operation); this data therefore,
needs to be erased by setting an initial value for the
variable.
Eg. 
Initialize variable
 Bonus = 0

You might also like