what is a far pointer ?
what is a far pointer ?
An indication that the compiler and/or reference material you're reading are WAY too old.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Back in the Old Days, the x86 DOS memory was set up in pages. You had a local page, and you had the non-local or FAR memory pages, pointers to which could be given with the FAR keyword, in Turbo C/C++.
Thankfully nowadays, the memory is a flat memory model, so the FAR descriptor is no longer needed, on a modern compiler.
IMO if you program code calls for a FAR memory pointer, you can simply ignore it, but do consider seriously upgrading your compiler if it uses the FAR keyword.
NEAR and FAR are from WIN16 and obsolete in WIN32 or WIN64.
Both are defined in WINDEF.H as blank strings.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill