The output of this code shows only one student's informations.
But I want to display the all students' informations.
Please find what is wrong?

In show(), use a loop to traverse through the list till

info->next!=NULL

and increment info every time to point to the next node. In your code, you are not progressing through the list.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.