How do i alter this block of code from single linked list todouble linked list in c programming?
#include<stdio.h>
//Define the node structure that has 2 members – int variable and apointer variable
struct Node
{
int data;
struct Node *next;
};
int main()
{
//Declare and initialise 5 pointer nodes
struct Node *nOne = (struct Node*)malloc(sizeof(struct Node));
struct Node *nTwo = (struct Node*)malloc(sizeof(struct Node));
struct Node *nThree = (struct Node*)malloc(sizeof(struct Node));
struct Node *nFour = (struct Node*)malloc(sizeof(struct Node));
struct Node *nFive = (struct Node*)malloc(sizeof(struct Node));
//Need a head node and it is pointing to the firstnode called nOne
struct Node *head = nOne;
//Assign different values
PayPal Gateway not configured
PayPal Gateway not configured