Today one of my friend ask me about below code :
var
  a: Integer;
begin
  ShowMessage(IntToStr(a));
end;
This is local variable and not been initialized , ok ?
Put code in OnClick event of a button component and then run code in three diffrent ways below :
- Click on the button and see result , result = 1635841
- Press Enter key and see result , result = 1
- Press Space key and see result , reuslt = 1636097
I test code in two diffrent computer & see same result , any idea about this ?
 
     
     
     
     
    