diff --git a/data_structures/linked_list.cpp b/data_structures/linked_list.cpp index eafc5f026..08bfe68b1 100644 --- a/data_structures/linked_list.cpp +++ b/data_structures/linked_list.cpp @@ -233,6 +233,9 @@ int main() { std::cout << "\n\nEnter you choice : "; std::cin >> choice; switch (choice) { + case 0: + std::cout << "\nQuitting the program...\n"; + break; case 1: std::cout << "\nEnter the element to be inserted : "; std::cin >> s;