V
V
Vadim_Zaripov2017-07-21 17:24:51
Arduino
Vadim_Zaripov, 2017-07-21 17:24:51

Is it possible to change the length of an array in arduino?

I need to create a function that returns an array, but the length of the array is not fixed. Can I change the length of an array in code?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Grishin, 2017-07-21
@vesper-bot

You can, but in this case you may not fit into the arduino RAM when doing redim.
In general, the availability of features like arrays of variable length does not depend on the platform, but on the ability of the language in which you write under it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question