Go Down

Topic: Empty array, assigning, transferring it to a function. (Read 786 times) previous topic - next topic


How do I customize the code if the content would pass from one array to another array 1 to 1?

Code: [Select]
char* myArray1 [] = {"Big", "Long", "High"};
myArray2 char [];
myArray2 = myArray1;

Something like this?

How do I transfer the array to another function?

Code: [Select]

viod loop () {
myArryInLoop char* [];
myArryInLoop = myFunction ();

char myFunction () {
char* myArray[] = {"Large", "Small"};
return myArray;

How do I clear the array?
Code: [Select]
char* myArray[] = {"Large", "small"};  // I'm full.
... myArray // I'm empty

Arduino IDE is still very poorly documented, there are these functions at all?


Please post technical questions on the forum, not by personal message. Thanks!

More info:


"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.



Nick, thank you for this recommendation.

IDE != language

I thought, Arduino is specific. It struggles a bit.


I thought, Arduino is specific. It struggles a bit.

The Arduino and IDE are doing fine. It is you that is struggling.
The art of getting good answers lies in asking good questions.

Go Up