Basic and Advance C Question:

Download Job Interview Questions and Answers PDF

How can I search for data in a linked list?

C Programming Interview Question
C Programming Interview Question

Answer:

Unfortunately, the only way to search a linked list is with a linear search, because the only way a linked list’s members can be accessed is sequentially. Sometimes it is quicker to take the data from a linked list and store it in a different data structure so that searches can be more efficient.

Download C Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is the benefit of using #define to declare a constant?When should a type cast be used?