Is there a difference between these two scripts?

I'm relatively new to programming and am trying to make my arduino code a little more consistent and easier to understand. That being said, would these two scripts do the same thing?

Script 1)

int X = 0;
int Y = 5;

voidLoop()
{
X += Y;
}

Script 2)

int X = 0;
int Y = 5;

voidLoop()
{
X = X + Y;
}

I know this is the case for C++, but I wasn't too sure about arduino Processing.
Thanks for taking the time to read this.

I know this is the case for C++, but I wasn't too sure about arduino Processing.

Arduino is not programmed using Processing. When using the Arduino IDE you are programming in C++

Does that answer your question ?

UKHeliBob:
Arduino is not programmed using Processing. When using the Arduino IDE you are programming in C++

Does that answer your question ?

Oh, okay. Yeah, that answers my question. Thank you!

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