[RESOLVED] Creating arrays.
I am still struggling with understanding the creation of objects.
For example.
int[] x = {4,5,6};
int[] y = new int[x.Length];
Why is it that for the first array, we can initialize it without the use of the new keyword yet in the second line, we need the new keyword?
Whats the difference?
Thanks so much.
Re: [RESOLVED] Creating arrays.
Thank you, that's the understanding I need to learn as well sometimes. Not just what code does what, but what is actually happening behind the scenes. That just makes more sense to me. I hope practicing it like that will give me a better understanding. or else, I'm just a goofy goober. the latter, more likely...
Thanks again.