values to it from a for loop. I even do not know the length of array. How should I do that?
maybe use a list?
But I didn't study about lists yet. It's chapters later
another option would be the create an array with 1000 entries, fill it up with 0s, then write the numbers to it and extract the numbers in another for loop into a new array with the correct dimensions
In C#, arrays are already filled with 0s when you create them
Thanks, I wasnt certain about the behavior in C# and wanted to make sure
Обсуждают сегодня