Results 1 to 12 of 12

Thread: What is far pointer in c ?

  1. #1

  2. #2
    Registered
    Join Date
    Mar 2016
    Posts
    76
    Far Pointer can address memory location which is not pointed by normal pointer

  3. #3
    Registered pxljobs's Avatar
    Join Date
    Jul 2016
    Location
    Bangalore
    Posts
    290
    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;

  4. #4
    far pointer is a pointer which includes a segment selector, making it possible to point to addresses outside of the default segment.

  5. #5
    Registered
    Join Date
    Feb 2017
    Posts
    10
    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

  6. #6
    Junior Registered
    Join Date
    Dec 2016
    Posts
    8
    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.

  7. #7
    Registered
    Join Date
    Jan 2017
    Posts
    55
    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~!

  8. #8
    Office Space for rent
    Join Date
    Mar 2017
    Location
    Bangalore
    Posts
    45
    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.

  9. #9
    Junior Registered
    Join Date
    Mar 2017
    Posts
    5
    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

  10. #10
    Registered
    Join Date
    Nov 2016
    Posts
    649
    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.

  11. #11
    Registered
    Join Date
    Nov 2017
    Posts
    12
    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.

  12. #12
    Registered
    Join Date
    Nov 2016
    Posts
    649
    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.

Similar Threads

  1. What is const pointer in C?
    By penrix in forum Website Programming & Databases
    Replies: 2
    Last Post: 08-02-2016, 10:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •