Problem with 2d array


i declared array when try access different indexes loop, doesn't work.

code: [select]
lcd.print(l_value[99][1]);
that's way outside bounds of 10 x 10 array.

code: [select]
  for(int i=0;i<sizeof(l_value);i++){
  for(int j=0;j<sizeof(l_value);j++)

just sizeof() report you? array 200 bytes. can't loop on 200 x 200 array when 10 x 10.


Arduino Forum > Using Arduino > Programming Questions > Problem with 2d array


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support