#define

I am curious to know if I can use the ‘defined’ name immediately following the definition, before I get into setup() or loop().

I tried it and it seems to work OK, but I didn’t want to create another problem down the line because I’m not familiar with how the compiler works.

something like:

#define SOME_THING 7
#define ANOTHER_THING 8
int foo [SOME_THING +1];
void setup()
{
}
void loop()
{
}

You can.

What you and the preprocessor see

#define SOME_THING 7
#define ANOTHER_THING 8
int foo [SOME_THING +1];
void setup()
{
}
void loop()
{
}

What the compiler sees

int foo [7+1];
void setup()
{
}
void loop()
{
}

@budvar10 and @AWOL,

Appreciate that, thanks to both!