Can we change the size of an array at run time? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Can we change the size of an array at run time?

28th Jul 2018, 4:44 PM
Abinash chaudhary
Abinash chaudhary - avatar
3 Answers
0
What language do you mean? In some languages (like Ruby) yes, but only because of behind-the-scenes resizing.
28th Jul 2018, 5:27 PM
Alexander
Alexander - avatar
0
Sure. Use vectors.
28th Jul 2018, 6:08 PM
Steppenwolf
Steppenwolf - avatar
0
if you want to have a dynamic sized array, use the respective language's equivalent of a list
28th Jul 2018, 6:29 PM
hinanawi
hinanawi - avatar