Must use the c-> syntax because we get a pointer from the queue. The object is still alive because it was created in the heap. One should be careful about transient objects that are stored by reference in data structures.
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
Computer notes - Reference Variables –II
1. Class No.18 Data Structures http://ecomputernotes.com
2.
3.
4.
5.
6. Memory Organization Code Static data Stack Heap Process 1 (browser) Process 3 (word) Process 4 (ourtest.exe) Windows OS Process 2 (dev-c++) http://ecomputernotes.com
7.
8.
9.
10.
11.
12.
Notes de l'éditeur
End of lecture 2 The second goal is the “nuts and bolts” of the course. The third goal prepares a student for the future.
End of lecture 2 The second goal is the “nuts and bolts” of the course. The third goal prepares a student for the future.