Ada indicates that a dynamic variable should be implicitly deallocated at the end of the scope of its pointer type. Howe

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Ada indicates that a dynamic variable should be implicitly deallocated at the end of the scope of its pointer type. Howe

Post by answerhappygod »

Ada indicates that a dynamic variable should be implicitly
deallocated at the end of the scope of its pointer type. However,
implementing such deallocation is left to the discretion of the
compiler writer. Explain the implications of this language
policy.
Which form of heap management would you employ for real-time
systems (such as patient monitoring) and why?
True/False During garbage collection, the total number of
pointers to be traced is fixed by the number of pointer variables
in the program. Explain.
Give an advantage (if any), and a disadvantage of implicit
dereferencing of pointers as found in Algol 60.
Advantage:
Disadvantage:
True/False When pointers are used only for indirect addressing
and not dynamic storage management, lost objects cannot be created.
Explain.
Which solution to dangling pointers wastes more space: tombstone
or lock-and-key mechanism? Explain.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply