Question: Write a C program that displays a Menu and allows users to choose from the given choices: Choice 1: Create a linked list Choice 2:
Write a C program that displays a Menu and allows users to choose from the given choices: Choice 1: Create a linked list Choice 2: Display the linked list Choice 3: Insert the element at the beginning Choice 4: Delete the element at the beginning Choice 5: Exit from the program
For every choice, implement a separate function. The function declarations are as follows: void create(); // should ask user for the integer number input to create a node void display(); void insertAtBegin(); void deleteAtBegin();
Note: 1. Implement a singly linked list that stores an integer value.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
