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/)