SlideShare a Scribd company logo
In c,
Topic pointers
Why do they call it dereferencing? As in dereferencing the pointer. Where does that name come
from?
In c,
Topic pointers
Why do they call it dereferencing? As in dereferencing the pointer. Where does that name come
from?
Topic pointers
Why do they call it dereferencing? As in dereferencing the pointer. Where does that name come
from?
Solution
a.) A pointer is a variable that consists the address in memory of another variable. The deference
of a pointer gives the contents of an object pointed to by the pointer.
b.) Through this we are accessing a variable indirectly. De- prefix mostly comes from the latin
preposition meaning from. Dereferencing takes asway the reference and gives us what we are
actually referring to.
c.) The unary operator * is the dereferecing operator ,which helps in accessing the object the
pointer points to.
d.) Example:
typedef  struct X{int i_; double d_;} X;
XÂ Â Â x;
X*Â Â p= &x;
p->d_=3.15576;Â Â Â Â // dereferencing and accessing the data member x.d_
(*p).d_*=-1;

More Related Content

DOCX
In a symmetric multiprocessor configuration- AH processors can perform.docx
DOCX
In consumer behavior we discussed innovators- opinion leaders- and mar.docx
DOCX
In chapter 2- 5 objectives of memory management were discussed- In Cha.docx
DOCX
In certain chlorophyll cofactors the Mg2+ is axially coordinated by th.docx
DOCX
In C++ a function used to put data into a stack is typically called a.docx
DOCX
In C Programming create a program that converts a number from decimal.docx
DOCX
In an alternative universe- all rules governing quantum numbers and th.docx
DOCX
In a nonpolar covalent bond--- Electrons are shared unevenly Electrons.docx
In a symmetric multiprocessor configuration- AH processors can perform.docx
In consumer behavior we discussed innovators- opinion leaders- and mar.docx
In chapter 2- 5 objectives of memory management were discussed- In Cha.docx
In certain chlorophyll cofactors the Mg2+ is axially coordinated by th.docx
In C++ a function used to put data into a stack is typically called a.docx
In C Programming create a program that converts a number from decimal.docx
In an alternative universe- all rules governing quantum numbers and th.docx
In a nonpolar covalent bond--- Electrons are shared unevenly Electrons.docx

More from tristans3 (20)

DOCX
In a Classical model of the macroeconomy- the equilibrating mechanism.docx
DOCX
In 2012- Shurtleff estimates that warranty costs in the following year.docx
DOCX
In 2000- June- A 75-year-old widow- creates an irrevocable trust namin.docx
DOCX
In 2007- Heuy-'s actual income was $70-000- equal to his lifetime annu.docx
DOCX
Impulse and momentum are two two different parameters- Explain these p.docx
DOCX
Implementation of EHR Discuss the advantages and disadvantages associa.docx
DOCX
Implementing a new AIS system could prove to be beneficial or detrimen.docx
DOCX
Im creating a stack class using generics- what should my peek method l.docx
DOCX
ii)State whether you would expect the following Group 13 metal cations.docx
DOCX
IMF in Greece- Good or bad for the country- Why-SolutionIMF is interna.docx
DOCX
2- What is a colloid- Why is it difficult to filter a colloid- 3- What.docx
DOCX
2- The Mars Climate Orbiter (formerly the Mars Surveyor 98 Orbiter) wa.docx
DOCX
2- Rank the following molecules based upon reaction with H-O-HSO- (Fas.docx
DOCX
2- Match the arrows with the terms- Some arrows may be associated with.docx
DOCX
2- In each of the following pairs of substances- predict which one wou.docx
DOCX
2- The Reynolds number for a particular microchannel flow is found to.docx
DOCX
21- Predicting Products Explain why the hydration reaction involving 1.docx
DOCX
20B Section Review 1- How can you tell the difference between solutes.docx
DOCX
20pts) Discuss the advantages and disadvantages of using chlorine as a.docx
DOCX
20- Explain the difference between temperature and heat- Also- state w.docx
In a Classical model of the macroeconomy- the equilibrating mechanism.docx
In 2012- Shurtleff estimates that warranty costs in the following year.docx
In 2000- June- A 75-year-old widow- creates an irrevocable trust namin.docx
In 2007- Heuy-'s actual income was $70-000- equal to his lifetime annu.docx
Impulse and momentum are two two different parameters- Explain these p.docx
Implementation of EHR Discuss the advantages and disadvantages associa.docx
Implementing a new AIS system could prove to be beneficial or detrimen.docx
Im creating a stack class using generics- what should my peek method l.docx
ii)State whether you would expect the following Group 13 metal cations.docx
IMF in Greece- Good or bad for the country- Why-SolutionIMF is interna.docx
2- What is a colloid- Why is it difficult to filter a colloid- 3- What.docx
2- The Mars Climate Orbiter (formerly the Mars Surveyor 98 Orbiter) wa.docx
2- Rank the following molecules based upon reaction with H-O-HSO- (Fas.docx
2- Match the arrows with the terms- Some arrows may be associated with.docx
2- In each of the following pairs of substances- predict which one wou.docx
2- The Reynolds number for a particular microchannel flow is found to.docx
21- Predicting Products Explain why the hydration reaction involving 1.docx
20B Section Review 1- How can you tell the difference between solutes.docx
20pts) Discuss the advantages and disadvantages of using chlorine as a.docx
20- Explain the difference between temperature and heat- Also- state w.docx

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
Classroom Observation Tools for Teachers
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Computing-Curriculum for Schools in Ghana
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Presentation on HIE in infants and its manifestations
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Institutional Correction lecture only . . .
PPTX
Cell Types and Its function , kingdom of life
PPTX
Pharma ospi slides which help in ospi learning
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
O7-L3 Supply Chain Operations - ICLT Program
Final Presentation General Medicine 03-08-2024.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
O5-L3 Freight Transport Ops (International) V1.pdf
RMMM.pdf make it easy to upload and study
Classroom Observation Tools for Teachers
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Computing-Curriculum for Schools in Ghana
Chinmaya Tiranga quiz Grand Finale.pdf
VCE English Exam - Section C Student Revision Booklet
Supply Chain Operations Speaking Notes -ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Presentation on HIE in infants and its manifestations
Anesthesia in Laparoscopic Surgery in India
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Institutional Correction lecture only . . .
Cell Types and Its function , kingdom of life
Pharma ospi slides which help in ospi learning
human mycosis Human fungal infections are called human mycosis..pptx

In c- Topic pointers Why do they call it dereferencing- As in derefer.docx

  • 1. In c, Topic pointers Why do they call it dereferencing? As in dereferencing the pointer. Where does that name come from? In c, Topic pointers Why do they call it dereferencing? As in dereferencing the pointer. Where does that name come from? Topic pointers Why do they call it dereferencing? As in dereferencing the pointer. Where does that name come from? Solution a.) A pointer is a variable that consists the address in memory of another variable. The deference of a pointer gives the contents of an object pointed to by the pointer. b.) Through this we are accessing a variable indirectly. De- prefix mostly comes from the latin preposition meaning from. Dereferencing takes asway the reference and gives us what we are actually referring to. c.) The unary operator * is the dereferecing operator ,which helps in accessing the object the pointer points to. d.) Example: typedef  struct X{int i_; double d_;} X; X   x; X*  p= &x; p->d_=3.15576;    // dereferencing and accessing the data member x.d_