answersLogoWhite

0

It has to be a pointer all right.
Regarding 'far' and 'near': forget it, simply use 'Large' data modell (or 'Huge').

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you check whether a linked list is circular?

A linked list is circular if the tail of the list points to the head. The easiest way to check this is to check whether the pointer of the tail is a null pointer. If it is, then the list is not circular.


32 can you create a linked list with out structure pointer?

Not in C, no.


Write an algorithm for the implementation of a circular doubly linked list?

Create a new node, making sure it is not allocated locally in the function and thus will not be destroyed when the function execution finishesFill in dataUse the "last node" pointer in the list and copy the "next" pointer location (pointing to the first node) into the new nodes "next" pointerSet the "last node" "next" pointer to point to the new nodeChange the list's "last node" pointer to point to the new nodeFor an example of implementation see: How_you_insert_a_newnode_in_singly_circular_link_list


What are the basic types of link list in java?

linear circular double linked linear double linked circular Knowing the names does not help much when your teacher will require you to actually know what the names mean. Start reading. Programming requires lots of reading.


What are the applications for circular linked lists?

A singly-linked circular list is useful for implementing queue data structures with minimum overhead. Normally we implement a queue with two pointers: one to the tail for insertions and one to the head for extractions. With a circular list we only need to maintain a single pointer to the tail because the tail always points "forwards" to the head (instead of null as it normally would), thus achieving constant-time access to both the head and tail via a single pointer. Circular linked lists are generally useful wherever "wraparound" is necessary. That is, from any given node in the list, we can traverse forwards with the guarantee that we will eventually arrive back at that same node. With doubly-linked circular lists we have the advantage of traversing in either direction (bi-directional traversal).


Write a program in C to create a Circular Linked list?

#include<iostream.h>


Write an algorithm for inserting an element in a circular linked list?

Given a currentNode pointer, perform the following steps: Create a newNode. Assign currentNode->next to newNode->next. Assign currentNode to newNode->prev. Assign newNode to currentNode->next.


How the singly Linked List related with Circular Linked List?

With a singly linked list you will typically maintain a pointer to the head node and perform all insertions and extractions at the head because it is the only node you have constant time access to. If you need to insert at the tail node as well then you must maintain a separate pointer to the tail. You would typically do this to implement a queue (first in, first out), where all insertions occur at the tail and all extractions at the head. But with a circular linked list, the tail node points to the head node thus you no longer need to maintain a separate pointer to the head in order to implement a queue, you only need to maintain a pointer to the tail.


How the pointer used in the linked list?

The pointer in linked list is used for traversing through the elements of the linked list. In a singly linked list, only a next pointer exits. So this pointer can be used for traversing only in one direction in the list. In case of a doubly linked list, a next and previous pointer exits. These pointers are used for traversing in both direction in the list.


How can a binary tree be converted into a doubly linked list?

To convert a binary tree into a doubly linked list, perform an in-order traversal of the tree and adjust the pointers to create the doubly linked list. This involves setting the left child pointer to the previous node and the right child pointer to the next node in the list.


Advantage and disadvantage of linked list?

Linked list is a dynamic data structure that contains a "link" to the structure containing the next item. It is a collection of structures ordered not by their physical placement in memory (like array) but by logical links that are stored as part of the data in the structure itself.Advantages of Linked Lists- Dynamic structure (Mem. Allocated at run-time).- We can have more than one datatype.- Re-arrange of linked list is easy (Insertion-Deletion).- It doesn't waste memory.Disadvantages of Linked Lists- In linked list, if we want to access any node it is difficult.- It is occupying more memory.


What pointer type will you use to implement a heterogeneous linked list in c?

void pointer