What I'm doing wrong or why is it not working:

#define Uin A0;

void setup() {

void loop() {

Results in a Error (expected ')' before ; token.

I thought #define just exists as a place holder.


Because you have a ; at the end of your #define.

#define Uin A0;



The Arduino website mentions this in their reference. For more in-depth detail about the C pre-processor you can read the (rather large) manual here.

| improve this answer | |
  • That's it. Thank you. Could you please link to the reference. (It is also answered there - I'm sorry) [In 5 min I can accept the answer] link – TimK May 15 '17 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.