I have a Pet struct and data members include name,animal type,age and a pointer variable nextPet.
I want to write a function that dynamically creats a new node for a Pet object and then should ask the user to enter in the information for all data members of the node and assign NULL to the nextPet data member. It must return the pointer to the struct.
And I want to display all the data in linked list.
thnks