arduino Variables and Data Types Assign value to a variable


Example

If you have a variable declared before, you can assign some value to it:

For example:

int a;  // declared previously
a = 2;

Or change the value:

int a = 3;  // initalized previously
a = 2;