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??
It's not information that's required.
With the interweb we have far easier access to far more information than ever before.
The problem seems to be how to think about that information and apply it to problem solving.
As the old saying goes, "A good education is not about what you know, but about what you know how to find out."
Like a lot of things in real life, there are exceptions.
Sometimes people get a mental block. Where any details given become transparent and cannot be assimilated. A direct answer to a question can often clear one of these blocks and make "the penny drop".
Call me a numskull if you like, but I know I've experienced this on more than one occasion and seen others experience it too.
So, blindly following the "I won't tell you the answer, look at page XYZ" is not always the best approach.
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?
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?