SlideShare a Scribd company logo
1 of 1
Download to read offline
Assume that you have a class that has an integer pointer as a private member. One of the
member functions will dynamically allocate memory memory and assign the address to that
member. Assume that an object of that class type is instantiated and the funtion called to allocate
memory. When the object reaches the end of it's scope - will the memory that has been allocated
be released automatically? If not, how would you create a mechanism to accomplish this. Be
specific.

More Related Content

More from hershbudhia1

aSuppose that we identify 145 women 50 to 54 years of age .pdf
aSuppose that we identify 145 women 50 to 54 years of age .pdfaSuppose that we identify 145 women 50 to 54 years of age .pdf
aSuppose that we identify 145 women 50 to 54 years of age .pdfhershbudhia1
 
Asthma is a common respiratory pathology How do you think t.pdf
Asthma is a common respiratory pathology How do you think t.pdfAsthma is a common respiratory pathology How do you think t.pdf
Asthma is a common respiratory pathology How do you think t.pdfhershbudhia1
 
Assume you are given a pointer to the root node of a complet.pdf
Assume you are given a pointer to the root node of a complet.pdfAssume you are given a pointer to the root node of a complet.pdf
Assume you are given a pointer to the root node of a complet.pdfhershbudhia1
 
Assume you have two lists named list1 and list2 that are of .pdf
Assume you have two lists named list1 and list2 that are of .pdfAssume you have two lists named list1 and list2 that are of .pdf
Assume you have two lists named list1 and list2 that are of .pdfhershbudhia1
 
Assuming a parent isotope with a halflife 45 billion year.pdf
Assuming a parent isotope with a halflife 45 billion year.pdfAssuming a parent isotope with a halflife 45 billion year.pdf
Assuming a parent isotope with a halflife 45 billion year.pdfhershbudhia1
 
Assume there are no taxes or risk of bankruptcy The assets .pdf
Assume there are no taxes or risk of bankruptcy The assets .pdfAssume there are no taxes or risk of bankruptcy The assets .pdf
Assume there are no taxes or risk of bankruptcy The assets .pdfhershbudhia1
 
The figure below describes the process of crossing over in .pdf
The figure below describes the process of crossing over in .pdfThe figure below describes the process of crossing over in .pdf
The figure below describes the process of crossing over in .pdfhershbudhia1
 
The Finance Committee will oversee the financial activities .pdf
The Finance Committee will oversee the financial activities .pdfThe Finance Committee will oversee the financial activities .pdf
The Finance Committee will oversee the financial activities .pdfhershbudhia1
 
The Financial Accounting Standards Board FASB is a private.pdf
The Financial Accounting Standards Board FASB is a private.pdfThe Financial Accounting Standards Board FASB is a private.pdf
The Financial Accounting Standards Board FASB is a private.pdfhershbudhia1
 
The figure below shows a simple network Using the BellmanF.pdf
The figure below shows a simple network Using the BellmanF.pdfThe figure below shows a simple network Using the BellmanF.pdf
The figure below shows a simple network Using the BellmanF.pdfhershbudhia1
 
The figure here shows the current dwarf planets of our solar.pdf
The figure here shows the current dwarf planets of our solar.pdfThe figure here shows the current dwarf planets of our solar.pdf
The figure here shows the current dwarf planets of our solar.pdfhershbudhia1
 
The figure below shows two membrane proteins A and B inv.pdf
The figure below shows two membrane proteins  A and B  inv.pdfThe figure below shows two membrane proteins  A and B  inv.pdf
The figure below shows two membrane proteins A and B inv.pdfhershbudhia1
 
The FBI wants to determine the effectiveness of their 10 10 .pdf
The FBI wants to determine the effectiveness of their 10 10 .pdfThe FBI wants to determine the effectiveness of their 10 10 .pdf
The FBI wants to determine the effectiveness of their 10 10 .pdfhershbudhia1
 
The Fibonacci numbers are defined by the series 0 1 1 2 .pdf
The Fibonacci numbers are defined by the series 0 1 1 2 .pdfThe Fibonacci numbers are defined by the series 0 1 1 2 .pdf
The Fibonacci numbers are defined by the series 0 1 1 2 .pdfhershbudhia1
 
The Ethisphere instituteethispherecom every year publishe.pdf
The Ethisphere instituteethispherecom every year publishe.pdfThe Ethisphere instituteethispherecom every year publishe.pdf
The Ethisphere instituteethispherecom every year publishe.pdfhershbudhia1
 
The essential steps in relative valuation are A Find compa.pdf
The essential steps in relative valuation are A Find compa.pdfThe essential steps in relative valuation are A Find compa.pdf
The essential steps in relative valuation are A Find compa.pdfhershbudhia1
 
the evidence indicated that the two sexes are more alike tha.pdf
the evidence indicated that the two sexes are more alike tha.pdfthe evidence indicated that the two sexes are more alike tha.pdf
the evidence indicated that the two sexes are more alike tha.pdfhershbudhia1
 
The Ethical Legal and Social Implications ELSI Program o.pdf
The Ethical Legal and Social Implications ELSI Program o.pdfThe Ethical Legal and Social Implications ELSI Program o.pdf
The Ethical Legal and Social Implications ELSI Program o.pdfhershbudhia1
 
The EPA Assigns wetlands to to two categories and NOAA iden.pdf
The EPA Assigns wetlands to to two categories and NOAA iden.pdfThe EPA Assigns wetlands to to two categories and NOAA iden.pdf
The EPA Assigns wetlands to to two categories and NOAA iden.pdfhershbudhia1
 
The environmental agency from Homework 5 is asking for your .pdf
The environmental agency from Homework 5 is asking for your .pdfThe environmental agency from Homework 5 is asking for your .pdf
The environmental agency from Homework 5 is asking for your .pdfhershbudhia1
 

More from hershbudhia1 (20)

aSuppose that we identify 145 women 50 to 54 years of age .pdf
aSuppose that we identify 145 women 50 to 54 years of age .pdfaSuppose that we identify 145 women 50 to 54 years of age .pdf
aSuppose that we identify 145 women 50 to 54 years of age .pdf
 
Asthma is a common respiratory pathology How do you think t.pdf
Asthma is a common respiratory pathology How do you think t.pdfAsthma is a common respiratory pathology How do you think t.pdf
Asthma is a common respiratory pathology How do you think t.pdf
 
Assume you are given a pointer to the root node of a complet.pdf
Assume you are given a pointer to the root node of a complet.pdfAssume you are given a pointer to the root node of a complet.pdf
Assume you are given a pointer to the root node of a complet.pdf
 
Assume you have two lists named list1 and list2 that are of .pdf
Assume you have two lists named list1 and list2 that are of .pdfAssume you have two lists named list1 and list2 that are of .pdf
Assume you have two lists named list1 and list2 that are of .pdf
 
Assuming a parent isotope with a halflife 45 billion year.pdf
Assuming a parent isotope with a halflife 45 billion year.pdfAssuming a parent isotope with a halflife 45 billion year.pdf
Assuming a parent isotope with a halflife 45 billion year.pdf
 
Assume there are no taxes or risk of bankruptcy The assets .pdf
Assume there are no taxes or risk of bankruptcy The assets .pdfAssume there are no taxes or risk of bankruptcy The assets .pdf
Assume there are no taxes or risk of bankruptcy The assets .pdf
 
The figure below describes the process of crossing over in .pdf
The figure below describes the process of crossing over in .pdfThe figure below describes the process of crossing over in .pdf
The figure below describes the process of crossing over in .pdf
 
The Finance Committee will oversee the financial activities .pdf
The Finance Committee will oversee the financial activities .pdfThe Finance Committee will oversee the financial activities .pdf
The Finance Committee will oversee the financial activities .pdf
 
The Financial Accounting Standards Board FASB is a private.pdf
The Financial Accounting Standards Board FASB is a private.pdfThe Financial Accounting Standards Board FASB is a private.pdf
The Financial Accounting Standards Board FASB is a private.pdf
 
The figure below shows a simple network Using the BellmanF.pdf
The figure below shows a simple network Using the BellmanF.pdfThe figure below shows a simple network Using the BellmanF.pdf
The figure below shows a simple network Using the BellmanF.pdf
 
The figure here shows the current dwarf planets of our solar.pdf
The figure here shows the current dwarf planets of our solar.pdfThe figure here shows the current dwarf planets of our solar.pdf
The figure here shows the current dwarf planets of our solar.pdf
 
The figure below shows two membrane proteins A and B inv.pdf
The figure below shows two membrane proteins  A and B  inv.pdfThe figure below shows two membrane proteins  A and B  inv.pdf
The figure below shows two membrane proteins A and B inv.pdf
 
The FBI wants to determine the effectiveness of their 10 10 .pdf
The FBI wants to determine the effectiveness of their 10 10 .pdfThe FBI wants to determine the effectiveness of their 10 10 .pdf
The FBI wants to determine the effectiveness of their 10 10 .pdf
 
The Fibonacci numbers are defined by the series 0 1 1 2 .pdf
The Fibonacci numbers are defined by the series 0 1 1 2 .pdfThe Fibonacci numbers are defined by the series 0 1 1 2 .pdf
The Fibonacci numbers are defined by the series 0 1 1 2 .pdf
 
The Ethisphere instituteethispherecom every year publishe.pdf
The Ethisphere instituteethispherecom every year publishe.pdfThe Ethisphere instituteethispherecom every year publishe.pdf
The Ethisphere instituteethispherecom every year publishe.pdf
 
The essential steps in relative valuation are A Find compa.pdf
The essential steps in relative valuation are A Find compa.pdfThe essential steps in relative valuation are A Find compa.pdf
The essential steps in relative valuation are A Find compa.pdf
 
the evidence indicated that the two sexes are more alike tha.pdf
the evidence indicated that the two sexes are more alike tha.pdfthe evidence indicated that the two sexes are more alike tha.pdf
the evidence indicated that the two sexes are more alike tha.pdf
 
The Ethical Legal and Social Implications ELSI Program o.pdf
The Ethical Legal and Social Implications ELSI Program o.pdfThe Ethical Legal and Social Implications ELSI Program o.pdf
The Ethical Legal and Social Implications ELSI Program o.pdf
 
The EPA Assigns wetlands to to two categories and NOAA iden.pdf
The EPA Assigns wetlands to to two categories and NOAA iden.pdfThe EPA Assigns wetlands to to two categories and NOAA iden.pdf
The EPA Assigns wetlands to to two categories and NOAA iden.pdf
 
The environmental agency from Homework 5 is asking for your .pdf
The environmental agency from Homework 5 is asking for your .pdfThe environmental agency from Homework 5 is asking for your .pdf
The environmental agency from Homework 5 is asking for your .pdf
 

Recently uploaded

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Assume that you have a class that has an integer pointer as .pdf

  • 1. Assume that you have a class that has an integer pointer as a private member. One of the member functions will dynamically allocate memory memory and assign the address to that member. Assume that an object of that class type is instantiated and the funtion called to allocate memory. When the object reaches the end of it's scope - will the memory that has been allocated be released automatically? If not, how would you create a mechanism to accomplish this. Be specific.