answersLogoWhite

0

What else can I help you with?

Continue Learning about Engineering

What is far and near pointer and how are they used?

It is a matter of the memory model you are using. On old or embedded systems, some memory was outside of the range of a normal pointer. If you have 4 megs of ram you need at least a 22bit pointer to see all of it. But let's say you only have a 16 bit pointer. This means you can only access the first 65K of ram. Odd as it may sound, this was a problem on old computers, and is sometimes an issue on embedded devices with limited processing power. The near and far classifications were a solution. Pointers are near by default. In my example above, the 65K of ram would be accessed with a near pointer. To get past that 16 bit limit, you need a far pointer. Thus: memory within the pointer's range is near. Memory outside of the range is far. Near pointer: char near * ptr; Far pointer: char far * ptr;A far pointer uses both the segment and the offset address to point to a location in memory. A near pointer in contrast uses only the offset address and the default segment. The far pointer can point to any location in memory, whereas the near pointer can only point to a nearby local address.Something that was important 20 years ago. Now you can forget it.


How do you change scrin coulor using far pointer in c ganguage?

brown


What is the contents of the stack pointer after the execution of the call instruction?

On a near call, the stack pointer is 2 less than its original value. On a far call, it is 4 less.


What is the algorithm to delete a child node in binary tree?

as far as i know u have 4 cases for the node u wanna delete1.It's a leaf (has no children)2.It has only left child3.it has only right child4.it has both children ,left and rightnow, let's work on it :>set a pointer node to the rootwhile the element to be deleted doesnt equal the pointerif it's smaller, move the pointer to the left subtreeif it's large , move the pointer to the right subtreeif pointer reached the end of the tree , null, break the loop (unluckly that means u didnt find the element that should be removed)end while //(now u must have found the target, the while condition is breaked normally)// this is case 4if both children don't equal nullget the most left node in the subtree of the pointer nodeassign its value to the pointer node.remove it (set that most left thing to equal null)//...case 2if pointer node.right only equals nullpointer node = pointer node.left//...case3if pointer node.left only equals nullpointer node = pointer node.right//... case 1if pointer node.left and .right equals nullpointer node.data = nullmaybe it doesnt look like any algorithm style ,sorry for that, that's as far as i knw, i doubt case 4 anyways..


What is falloc?

falloc is a function similar to malloc. Where the function malloc returns a pointer to an area of memory, falloc returns a "far" pointer to a "far" area of memory; i.e., memory that goes beyond the segmented memory limitations inherent to x86 memory architecture.

Related Questions

How can a binary tree be represented in a computer memory?

A binary tree is a tree that has at most two child node. It contain a data field, a pointer to the left and a pointer to the right child.


What does it mean by huge pointer is normalize give detail about far pointer huge pointer?

On far pointers the comparison operators(== and !=) check the 32 bit value. While >, =,


What is far pointer in c language?

its pointer created for high safety that cant be find by anyone.


Is Far pointer necessary to create a circular linked list?

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


What is far and near pointer and how are they used?

It is a matter of the memory model you are using. On old or embedded systems, some memory was outside of the range of a normal pointer. If you have 4 megs of ram you need at least a 22bit pointer to see all of it. But let's say you only have a 16 bit pointer. This means you can only access the first 65K of ram. Odd as it may sound, this was a problem on old computers, and is sometimes an issue on embedded devices with limited processing power. The near and far classifications were a solution. Pointers are near by default. In my example above, the 65K of ram would be accessed with a near pointer. To get past that 16 bit limit, you need a far pointer. Thus: memory within the pointer's range is near. Memory outside of the range is far. Near pointer: char near * ptr; Far pointer: char far * ptr;A far pointer uses both the segment and the offset address to point to a location in memory. A near pointer in contrast uses only the offset address and the default segment. The far pointer can point to any location in memory, whereas the near pointer can only point to a nearby local address.Something that was important 20 years ago. Now you can forget it.


How far does a 1mW laser pointer go?

200 miles


How far can a 5mw laser pointer go?

10 ft


When should a far pointer be used?

Never. 'near' and 'far' pointers are outdated by twenty years!


What is a tree recursion in C programming?

A binary tree is made of nodes, where each node contains a "left" pointer, a "right" pointer, and a data element. The "root" pointer points to the topmost node in the tree. The left and right pointers recursively point to smaller "subtrees" on either side. The formal recursive definition is: a binary tree is either empty (represented by a null pointer), or is made of a single node, where the left and right pointers (recursive definition ahead) each point to a binary tree. Tree recursion describes a class of algorithms for accessing binary trees, exploiting their inherently recursive nature. answer by narayan nyaupane kathmandu, Nepal


How far is a three pointer from the basket?

20 feet from the basketball rim.


How far is the three pointer from the basket in high school?

20 feet


How far is 3-pointer in college?

20 feet and 9 inches