Seneca College OOP 244 OOP FINALS REVIEW DYNAMIC ALLOCATION: ptr = new Type[size]; ptr = new Student[n]; ptr = new Student*[n + 1]; etc Dynamically allocated variables and objects, unlike statically allocated variables and objects, do not go out of scope when the braces it is defined in closes; must be explicitly deallocated by user. DYNAMIC DELLOCATION: delete ptr; delete[] ptr; ...[Show More]
Category: | Final Exam Review |
Number of pages: | 2 |
Language: | English |
Last updated: | 8 months ago |
Downloads: | 0 |
Views: | 0 |