UrbanPro
true

Take BTech Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Lets know about far, near and huge pointers for fresher interview purpose

Shiladitya Munshi
25/11/2016 0 0
All of these three candidates relate to 16 bit architecture where segmented memory architecture was there. They are not at all relevant for present days 32 or 64 bit architecture where the way of memory segmentation is completely different; even they may not exist at all.
 
Still I believe they are good to learn at least for interview purposes. Here I will give you very basic idea of this and I will not encourage you to go beyond that
 
In 16 bit architecture, the memory is divided into four segments. Data, Code, Stack and Extra and any logical address in this model has two components selector and offset. Selector is used to select the one out of four logical segments and the offset is used to point the address within the segment as specified by the selector.
 
On this background, a far pointer (designated by a non standard keyword “far”) can point across the segment as the selector portion of its logical address is explicitly represented. The offset represent the distance from the base of the selector. The arithmetic operations on the far pointers are not allowed to change selector portion, only the offset portion can be changed.
 
On the other hand, a near pointer can point only to the current segment, hence it has got no explicit selector, only the offset value is there and it is free to be changed through pointer arithmetic.
 
A huge pointer is like far pointer where explicit selectors are there, but the point of its difference with far pointer is that it is normalized. This means, as pointer arithmetic (in both the cases of far and huge) can change the offset part; it may go beyond the current selector range. In case of far pointer even if the offset is changed to different selector, selector will not be changed, but in case of huge pointer, the selector will be changed to wrap around the offset value, and the offset value will be minimum. This wrapping off selector portion is called pointer normalization.
0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

STUDY TIP
EAT TULSI LEAVES EVERY MORNING AND DRINK WATER AFTER THAT

In fresher interview technical round, you may get confused with some object oriented "look a like" features of C language.
Sometimes C looks like to follow object oriented paradigm. Don’t get carried away withis idea. Current note focuses on this. Star (*) Operator in C language acts both as pointer and multiplication....

Brainmapping is the shortcut to longer subject recall.
Read through the subject matter and highlight the essential core areas covered. Select one core area at a time and dig into the finer details and subtopics,creating a brain map sequence. Write down...

Adeeba Riaz

0 0
0

What to read for Reading Comprehension ?
If somebody puts a gun to your head today and asks you to predict what questions will come in CAT, you would be safe in saying - that come what may - Reading Comprehension (RC) is bound to be part of the...

Turbulent Flow
The shearing process causes energy loss and heating of the fluid. This increases with mean velocity. When a certain critical velocity is exceeded, the streamlines break up and mixing of the fluid occurs....
X

Looking for BTech Tuition Classes?

The best tutors for BTech Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BTech Tuition with the Best Tutors

The best Tutors for BTech Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more