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

array defining

i want to send 300 constant values to an array and i defined it in this way
code unsigned int a[]= '' 936, 956, 1100, 1208, 1150, 986''; // like these all 300 values

but keil software gives error in these ''''' and say unspecified... pls tell me how can i store large constant values in an array??

Parents
  • Well, the people whu just happens to be stuck are normally able to describe their problem and what they have tried. And how they are stuck.

    When a person who are willing to solve his own problems but still gets stuck visits a forum, (s)he doesn't post "Give me code" or "Please help quickly".

    This thread could be solved with Google and "C array integers". But there are hundreds of search expressions that will give the answers in the top-10 links returned by Google. Most probably for most other search engines too.

    Can you really see anyone so stuck that they can't consider such "advanced" search query?

Reply
  • Well, the people whu just happens to be stuck are normally able to describe their problem and what they have tried. And how they are stuck.

    When a person who are willing to solve his own problems but still gets stuck visits a forum, (s)he doesn't post "Give me code" or "Please help quickly".

    This thread could be solved with Google and "C array integers". But there are hundreds of search expressions that will give the answers in the top-10 links returned by Google. Most probably for most other search engines too.

    Can you really see anyone so stuck that they can't consider such "advanced" search query?

Children
  • As posts go, the OP didn't do too badly. He didn't say "Give me code" or "Please help quickly". He actually asked a question.

    If everyone was as smart as you seem to be expecting them to be and able to find all the expected knowledge directly from the reference material, there'd be no need for anybody to post a question on a forum like this. I wonder what you'd do then?