guys i was wondering about local variable
my question is something like this
I always and i mean almost always initialize my variable to be a global variable, but i was wondering could i initiate it in someway so it to become a local variable
heres an example:
int Count=0;
void setup()
{ yada yada yada}
void loop()
{
did something heres that causes
Count++;
}
but could somehow i want it to be like this
void loop()
{
int Count=0;
somthing happen somwhere here
and then Count++;
}
i know that if i do it as the second way that is initializing the Count in the loop section will make the Count value reset to 0 every time it loop