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
I deny that!
In the example I cited, I suggested a linked-list precisely because the alternative was so cumbersome!
" needs to be easily re-ordered, and/or items need to be easily added to & removed from the list.
Of course, using a linked-list where a straightforward lookup table (array) is a more appropriate solution is stupid; but that's a fault in choosing the wrong tool for the job - not a fault with linked-lists per se.
In the example I cited, I suggested a linked-list precisely because the alternative was so cumbersome! for you or for the processor?
Erik
"for you or for the processor?"
Both!
The alterative was large and cumbersome - so that's a lot of work for the programmer to write, and a lot of work for the processor to execute.