(Solved):Simulate a linear linked-list by an array Let L be a linear linked list. We will use array A to represent L. Your task is to write a C++ program that simulates operations on L by using A, and outpu… View Answer…

 

Question

Simulate a linear linked-list by an array Let L be a linear linked list. We will use array A to represent L. Your task is to write a C++ program that simulates operations on L by using A, and outputs results.

The following is an example snapshot of L and A at some given time:

struct node {

int data;

int next;

};

struct node A[100] ;

Assume that the list does not contain more than 100

Scroll to top