Array question


ok, simple programmers (which i'm not):  can create array of values , @ same time define initial value @ 0?

for example have 6 different sensor values, , have them initial value of 0, like:

int sensor [6]={1,2,3,4,5,6}
in sensor=0

or cancel each other out?

create experimental sketch, containing code in question, , try compiling see happens!


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Array question


arduino

Comments