Hello everyone, I am studying link list in c I have a project in which I have lookup table of rpm (clocks used to load the timer used for motor). This rpm table, I am taking in an array Now I want to implement a link list which will access the rpm from table and load it to timer of clock used for running the motor Is it possible Because as I am studying the link list, in that it is mentioned that link list is used instead of array Is it possible to access an array elements using link list ? If yes, then pls suggest me some link for it Correct me if I am wrong Thank u all
"Note that this is standard 'C' - it has nothing specifically to do with Keil, C51, or the 8051"
Note that most textbook examples will use dynamic memory allocation (malloc, etc) to create the entries in the list. One of the key advantages of linked-lists is the way that the entries can be dynamically created like this - but that does not mean that they have to be dynamically created.
In fact, for embedded systems in general and the 8051 in particular, it is most likely that the entries should not be dynamically allocated!
In an embedded system, it is far more likely that you would statically create a fixed number of entries, and simply link them into either a "free" list or an "in-use" list.