Page 1 of 1
[HD Pg 0, Sec. 3.3.2 - uninitialized-variables-and-default-values]
Posted: Sun Sep 30, 2018 9:26 am
by flex567
There are 3 points about initilization.
But I think the point 4 is missing about values for array elements.?
It could be included what are deafult values for elements of the array of static/instance/local vars.
Re: [HD Pg 0, Sec. 3.3.2 - uninitialized-variables-and-default-values]
Posted: Sun Sep 30, 2018 10:37 am
by admin
Taking about arrays at this point would be like forward referencing a topic

(arrays are introduced and discussed in the next chapter). Even so, the three points about default values of variables are complete and applicable to array variables as well. You will learn later that arrays are objects so, what goes for any reference variable goes for an array variable.
Array initialization, on the other hand, is an entirely different topic from variable initialization. Initializing the arrays elements are discussed in chapter 4.
We will add more information to improve this section nonetheless.
thank you for your feedback!