{
  "id": "enwiki-001362156739",
  "slug": "far-pointer",
  "title": "Far pointer",
  "qid": "",
  "lead": "In a segmented architecture computer, a far pointer is a pointer to memory in a specific context, such as a segment selector making it possible to point to addresses outside of the default segment. Comparison and arithmetic on far pointers is problematic: there can be several different segment-offset address pairs pointing to one physical address.",
  "body": "In a segmented architecture computer, a far pointer is a pointer to memory in a specific context, such as a segment selector making it possible to point to addresses outside of the default segment. Comparison and arithmetic on far pointers is problematic: there can be several different segment-offset address pairs pointing to one physical address. include int main() { char far *p = (char far *)0x55550005; char far *q = (char far *)0x53332225; *p = 80; (*p)++; printf(\"%d\", *q); return 0; } Output of the following program: 81; Because both addresses point to same location. Physical Address = (value of segment register) × 0x10 + (value of offset). Location pointed to by pointer is : 0x5555 × 0x10 + 0x0005 = 0x55555 Location pointed to by pointer is : 0x5333 × 0x10 + 0x2225 = 0x55555 So, and both point to the same location 0x55555. ==Notes== ==References==",
  "categories": [
    "109374363",
    "131995772",
    "20202781",
    "23603337",
    "24043274",
    "26220375",
    "47074602",
    "48316298",
    "53043714",
    "68328988"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1362156739",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1782967371.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001362156739",
    "type": "webpage",
    "title": "Far pointer",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/far-pointer",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          18
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001362156739",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1362156739",
    "note": "Immutable snapshot enwiki-001362156739"
  }
}