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.