[Answered, thanks] Leaving the () of a function call
i accidentally left () off function call, typing:
needless didn't call void pulseled(), of course did after noticed , put () in.
but i'm confused why compiled.....
code: [select]
pulseled;
// instead of
pulseled();
needless didn't call void pulseled(), of course did after noticed , put () in.
but i'm confused why compiled.....
the name of function pointer location a.k.a. address of function.
it compiles addresses of function may occur on right hand side (rhs) of expression.
you have same "problem" with
void setup()
{
int x;
x;
}
it compiles addresses of function may occur on right hand side (rhs) of expression.
you have same "problem" with
void setup()
{
int x;
x;
}
Arduino Forum > Using Arduino > Programming Questions > [Answered, thanks] Leaving the () of a function call
arduino
Comments
Post a Comment