Computer Science, asked by Gaurav3852, 9 hours ago

Write a Menu driven program in C to create a linked list of a class of students and perform

(a) Write out the contents of the list.

(b) Count the number of students above a specified age and weight.

Answers

Answered by karishnamohon123
0

You can search an element on a linked list using a loop using the following steps. We are finding item on a linked list.

Make head as the current node.

Run a loop until the current node is NULL because the last element points to NULL.

In each iteration, check if the key of the node is equal to item. If it the key matches the item, return true otherwise return false.

Answered by Sionfernandes
0

Answer:

a) for writing the content

iterate through the list using next pointer

and print them.

b) for biterate through linked list and check for specified condition and using increment the counter.

HOPE IT HELPED YOU!

Similar questions