Hello Fractal,

Hello

if I have the following code:

int foo;
foo = 5;
When the variable foo is declared, it is initialized to int.init, or
has garbage contents until it is assigned?

Thanks


int.init unless the compiler rewrites it as

int foo = 5;

and then 5.


Reply via email to