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

about an error

sir,
when i am doing 3d array initialization as following:
unsigned char keypad[4][4][0] =('0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F');
then its not showing any error.
but when i use following line:
unsigned char keypad[4][4][0] ={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
then compiler showing the error that there is some error near "{"
so can you please resolve my problem....?

Parents
  • If it is an 8051 or a general debugging question, a certain someone is not too bad to engage with.

    On other topics where hairs are needlessly being split...

             +-------------------+             .:\:\:/:/:.
             |   PLEASE DO NOT   |            :.:\:\:/:/:.:
             |  FEED THE TROLLS  |           :=.' -   - '.=:
             |                   |           '=(\ 9   9 /)='
             |   Thank you,      |              (  (_)  )
             |       Management  |              /'-vvv-'\ 
             +-------------------+             /         \ 
                     |  |        @@@          / /|,,,,,|\ \ 
                     |  |        @@@         /_//  /^\  \\_\ 
       @x@@x@        |  |         |/         WW(  (   )  )WW
       \||||/        |  |        \|           __\,,\ /,,/__
        \||/         |  |         |          (______Y______)
    /\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ 
    ==================================================================
    

Reply
  • If it is an 8051 or a general debugging question, a certain someone is not too bad to engage with.

    On other topics where hairs are needlessly being split...

             +-------------------+             .:\:\:/:/:.
             |   PLEASE DO NOT   |            :.:\:\:/:/:.:
             |  FEED THE TROLLS  |           :=.' -   - '.=:
             |                   |           '=(\ 9   9 /)='
             |   Thank you,      |              (  (_)  )
             |       Management  |              /'-vvv-'\ 
             +-------------------+             /         \ 
                     |  |        @@@          / /|,,,,,|\ \ 
                     |  |        @@@         /_//  /^\  \\_\ 
       @x@@x@        |  |         |/         WW(  (   )  )WW
       \||||/        |  |        \|           __\,,\ /,,/__
        \||/         |  |         |          (______Y______)
    /\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ 
    ==================================================================
    

Children