This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

two dimentional array(char) problem

hi !

I want a table from which i can take char data. so i have used char 2-dim array.my initialization is ok. but complier gives following error :

MAIN.C(24): error C242: 'array[]': too many initializers

unsigned char  guj_powerfail[8][5]= {{0x1b,0x0b,0x0b,0x0b,0x0f,0x03,0x03,0x00},
                                                                                  {0x19,0x11,0x11,0x11,0x13,0x1d,0x01,0x00},
                                                                                  {0x1c,0x04,0x04,0x1c,0x08,0x08,0x0c,0x00},
                                                                                  {0x00,0x00,0x1d,0x05,0x05,0x05,0x1d,0x00},
                                                                                  {0x0f,0x00,0x1b,0x0b,0x1b,0x13,0x1f,0x00}};

Please help.

Parents Reply Children
No data