Array and Loops. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Array and Loops.

How can I create an Array that does not have a data limit? using a loop to add the necessary data, someone please tell me.

8th Jun 2022, 12:06 AM
Andrey
9 Answers
+ 3
create your array dynamic to extend the array itself
8th Jun 2022, 2:06 AM
Rahmatullah Danish
Rahmatullah Danish - avatar
8th Jun 2022, 3:01 AM
Emerson Prado
Emerson Prado - avatar
+ 1
A program stores the data it uses in memory, so technically speaking, the amount of available memory, apart from what was already used by O/S and other programs/services etc. will be the allocation limit I suppose.
8th Jun 2022, 12:21 AM
Ipang
+ 1
It is that I need to save a certain amount of data in an array, but it is a code that generates a lot of data, of which I do not know how many they will be. that's why my question.
8th Jun 2022, 1:06 AM
Andrey
+ 1
Andrey, You might consider using one of the Collection in case of dynamic size container. https://docs.microsoft.com/en-us/dotnet/standard/collections/
8th Jun 2022, 3:45 AM
Ipang
+ 1
Thank you so much Ipang.
8th Jun 2022, 4:03 AM
Andrey
0
I don't understand, what do you mean? or in what way would it be done?
8th Jun 2022, 2:36 AM
Andrey
0
Thank you so much.
8th Jun 2022, 3:15 AM
Andrey
0
one more question, what code would you use to find a palindrome in an array?
8th Jun 2022, 3:20 AM
Andrey