PDA

View Full Version : What is far pointer in c ?



priya01
07-15-2016, 10:20 PM
What is far pointer in c ?

Shivangi Panwar
07-22-2016, 03:30 AM
Far Pointer can address memory location which is not pointed by normal pointer

pxljobs
08-04-2016, 12:14 AM
The far pointer is an 16 bit far pointers are a little slower a far pointer is a pointer which includes a segment selector, making it possible to point to addresses outside of the default segment.
Syntax:
char far*ptr;

aceamerican
02-06-2017, 05:10 AM
far pointer is a pointer which includes a segment selector, making it possible to point to addresses outside of the default segment.

raynowenhall
02-16-2017, 02:31 AM
Helo, You cannot point at a class, you can only point at an instance of a class, which is simply another term for an object. The class is essentially the object's type; it define's the object's behaviour, but is not the object in and of itself. The class also defines a pointer's type, so we can point at instances of a class and access the the object it represents through indirection.

____________
c# code analysis tools (https://www.checkmarx.com/2015/07/24/must-know-security-buzzwords-for-application-builders-and-defenders/)

jenisha
03-23-2017, 09:49 PM
When an address pointed to by a pointer is within the same segment, then it is a near pointer and therefore it requires only 2 bytes for offset. On the other hand, when a pointer points to an address which is out of the segment (that means in another segment), then that pointer is a far pointer.

tyagi
03-29-2017, 11:08 PM
So when an address pointed to by a pointer is within the same segment, then it is a near pointer and therefore it requires only 2 bytes for offset. On the other hand, when a pointer points to an address which is out of the segment (that means in another segment), then that pointer is a far pointer.

Thank you~!

officeshub
03-30-2017, 11:21 PM
If the pointer points to the memory location in the same memory segment then it is called as near pointer .
If the pointer points to the memory location in different memory segment then it is called as Far pointer.

vockerr
05-14-2017, 12:37 AM
The pointer basically holds addresses. So, when a pointer points to an address which is out of the segment (that means in another segment), then that pointer is a far pointer. It consist of 4 bytes: two for segment and two for offset.

________________
it disaster recovery (https://www.cloudendure.com/blog/disaster-recovery-books-save-time-money/)

damponting44
11-17-2017, 12:39 AM
Close pointer is utilized to store 16 bit tends to implies inside current fragment on a 16 bit machine. The constraint is that we can just access 64kb of information at any given moment. A far pointer is regularly 32 bit that can get to memory outside current section.

johnnymorgan
12-04-2017, 02:26 AM
The far pointer is an 16 bit far pointers are a little more slowly a far suggestion is a suggestion such as a section selector, creating it possible to factor to details outside of the standard section.

damponting44
12-05-2017, 01:38 AM
Near pointer is used to store 16 bit addresses means within current segment on a 16 bit machine. The limitation is that we can only access 64kb of data at a time. A far pointer is typically 32 bit that can access memory outside current segment.