(Solved):(C++) 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… View Answer…

 

Question

(C++) 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

Scroll to top