0
465views
Write a C program for linked list implementation of list.
1 Answer
0
5views

PROGRAM

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>

struct node {
   int data;
   int key;
   struct node *next;
};

struct node *head = NULL;
struct node *current = NULL;

//display the list
void printList() {
   struct node *ptr = head;
   printf("\n[ ");

   //start from the beginning
   while(ptr != NULL) …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.