Variables and used up memory

Hi there, I'm just a hobby programmer and would like to know if the length of a variable (meaning, if the variable consist of one letter or lets say ten) makes a difference to the used up memory space.

I'm using discriptive names as variables for an easier allocation, but as the project is growing, the available memory space is shrinking...and if longer names use up more memory, I have to use a different method to save some space...

thx & regards

It's good practice to use descriptive variable names - keep it up.

And no: the variable names are not used in the compiled output which is uploaded into your Arduino, so long names don't take up any more memory.

1 Like

no.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.