Hi, Flotul
From the very far I remember ...
ALL Variables have to be initialized before using them ....
Only one exception : IF you write variables the first time you use them ...
Say :
as here, Whatever the initial value of "Flotul" , it will be overwritten ...Code:Flotul VAR Byte ... Flotul = 4*Switzerland_cheese_weight*Price_per_pound
BTW, I often observed "FF" was the default value for an erased chip, BUT I also found other values - especially for EEPROM - , may be because of chip tests @Factory ...
SO, Only ONE rule : Carefully initialize all and every variable if you do not want to have surprises ...
We're not programming Arduinos here ...
Alain
Bookmarks