Create an element structure and a list structure that can store a list of integer numbers. Create 4 functions to i) Create an empty list, ii) Add a number to begin of list, iii) Add a number to end of list, iv) Add a number to specific position in the list, and v) display list. Put all of these structures and functions into a header file named: yourName-SingleLinkList.h
Hint: Following are sample function prototypes:
List* createAnEmptyList( ) void addToBeginOfList(List *ls, int data)
void displayList(List *ls) void addToEndOfList(List *ls, int data)
void addSpecificPositionInList(List *ls, int data, int position)
Comments
Leave a comment