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??
not the first time someone has 'jumped into' C and, at the first snag, posted here. I appreciate that nobody can learn all about C by taking a course or reading a book, but for a newbie, the first resource should be checking the book. I can not imagine any C book that does not have an example of an array initialized by numeric constants.
Why cant the newbies realize that taking a look in the book is a lot faster than waiting for a reply here (especially when the answer is "look in the book").
now, I do realize that there are issues that can be extremely difficult to solve by "checking the book" and I am not discouraging such be posted here, but simple, basic things where the answer will be (in this case) found by a quick look at the examples in the chapter 'arrays' should be handled by looking in the book
Erik
unsigned int a[]= { 936, 956, 1100, 1208, 1150, 986 };
OP posted 1-May-2013 03:44 GMT Westonsupermare Pier let the cat out of the bag 1-May-2013 17:57 GMT
so it cost the OP 14 hours 13 min not to look in a book
hp how's that for productivity
some of you professionals take being awkward to a whole new level