Best Answer

It's good for accessing data in large applications.

AnswerDefinition: A far pointer in segmented architecture computer is a pointer which includes segment number to address the entire 1mb memory which is available under Dos.

example: int main() {

int a; a=10; printf("%d",&a); return 0;

} Explanation:

When this code is saved/compiled the processor allocates a small amount of memory and memor address is given between the memory range 0 to 65,535.Which is part of the 1mb dos memory ie(10,48,780)bytes.If you want to store data/code beyond the memory range and any where in that 1mb memory.You can do that using the far pointers.By declaring a variable as 'far'pointer.The compiler tells the processor to allocate memory for that specific data/code to perform a specific process in that specific address.The address which is exceeds the 65,535 memory range if referred using the 4 digit hexadecimal number,using the two CPU registers namely segment,offset. While referring to memory address greater than 65,535,the 1mb dos memory is divided into segments,Each segment containing 0 to 65,535 locations(64kb) and to refer these segments the segment register is used.The offset regsiter is used to refer the 65,535 locations present in each segment. So using these two registers(segment:offset)we can refer the entire 1mb memory avialable in Dos.And it is done by writing the segment and offset address side by side like this B8000000.The first four hexadecimal digit represents the segment address and the last four hexadecimal address represents the offset address.

User Avatar

Wiki User

โˆ™ 2011-09-13 15:43:07
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is far pointer and its uses?
Write your answer...
Related questions

What are near and far pointer in c?

Far and near pointer is only introduced in turbo C compiler.When the pointer refers to an address in the same segment it is called near pointer, but when it refers to an address in another segment it is called far pointer.

What is pointer and pointer types and uses of pointer and the meaning of pointer?

As the name suggests Pointer is used to point towards something ,here in this case it points to another variable and stored at a memory location. Pointer is a variable that stores address of another variable. Different Types of pointers are: 1)Dangling Pointers 2)NULL Pointers 3)This Pointer 4)Generic Pointer 5)Near Pointer 6)Far Pointer

What is void pointer and what are its uses?

Void pointer can hold the address of any kind of pointer. But we can't operate on void pointer

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.

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 are different type of pointers?

Pointer is a variable that is used to store the memory address of another variable. There are differenr types of pointers: NULL pointer THIS pointer VOID pointer NEAR pointer HUGE pointer FAR pointer WILD pointer

Why would you use a pointer to pointer a in aprogram?

A pointer to pointer has many uses, one of the simplest being 2D arrays (matrices). Compacting garbage collectors also often employ pointer pointers.

What are the uses of a pointer in c?

Accessing data by address.

What is far pointer in c language?

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

What is huge pointer generic pointer and far pointer?

Far Pointer is a pointer that is stored using four bytes (32 bits). The bytes are stored little endian or low to high order. A far pointer can access objects up to 16K in size in any memory area. Objects larger than 16K must be accessed using huge pointers This book is basic for c , download and Read this... must required !

How far is a 3 pointer?

22 feet

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').

How structure passing and returning is implemented by compiler?

it uses pointer to stucture.

How far is the 3 pointer line?

it is 30 feet or something

How far out is a 3 pointer in the NBA?

23 ft and 9 in.

How far is the 3 pointer is in nba?

23 ft. 9 in

How far does a 1mW laser pointer go?

200 miles

When should a far pointer be used?

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

What is the silver pointer in a synagogue?

The pointer a person uses in a synagogue is called a Yad. They use it to read from the Torah. It is also used during Bar Mitzvahs.

Can pointer be incremented?

Yes. A built-in pointer uses the built-in increment operator. The implementation of this operator increments the pointer variable's value by the length of the pointer (in bytes). The pointer's length is determined by the underlying type of the pointer itself, not the type of the object being referred to. Thus a built-in pointer may refer to a user-defined type (struct or class).

Which programming language uses a mouse pointer shaped in the form of a turtle?


Which programming language uses a mouse pointer shaped in the form of turtle?


What is the rectangular area on notebook uses fingertip to move pointer?

touch pad

How far is College three pointer?

The college 3 pointer is exactly 2 feet away from the rim and corner threes are 1 feet

How far is a three pointer from the basket?

20 feet from the basketball rim.